From 8d4acd01911baa15ef7612295b7d250f822feb91 Mon Sep 17 00:00:00 2001 From: alvarotrigo Date: Mon, 28 Sep 2015 22:03:29 +0100 Subject: [PATCH] - Fixed critical bug with touch devices #1553 - Fixed critical bug with touch devices #1553 --- jquery.fullPage.js | 5 +++-- jquery.fullPage.min.js | 6 +++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/jquery.fullPage.js b/jquery.fullPage.js index 171ac4e2e..262ba85c4 100755 --- a/jquery.fullPage.js +++ b/jquery.fullPage.js @@ -1,5 +1,5 @@ /*! - * fullPage 2.7.2 + * fullPage 2.7.3 * https://github.com/alvarotrigo/fullPage.js * @license MIT licensed * @@ -269,6 +269,7 @@ }); } else if(value){ + FP.setMouseWheelScrolling(true); addTouchHandler(); }else{ @@ -499,8 +500,8 @@ }).get(); } - FP.setAllowScrolling(true); prepareDom(); + FP.setAllowScrolling(true); //due to https://github.com/alvarotrigo/fullPage.js/issues/1502 windowsHeight = $window.height(); diff --git a/jquery.fullPage.min.js b/jquery.fullPage.min.js index ca2cc684e..7feba3443 100644 --- a/jquery.fullPage.min.js +++ b/jquery.fullPage.min.js @@ -1,12 +1,12 @@ /*! - * fullPage 2.7.2 + * fullPage 2.7.3 * https://github.com/alvarotrigo/fullPage.js * @license MIT licensed * * Copyright (C) 2015 alvarotrigo.com - A project by Alvaro Trigo */ -(function(c,l){"function"===typeof define&&define.amd?define(["jquery"],function(m){return l(m,c,c.document,c.Math)}):"undefined"!==typeof exports?module.exports=l(require("jquery"),c,c.document,c.Math):l(jQuery,c,c.document,c.Math)})("undefined"!==typeof window?window:this,function(c,l,m,p,D){var n=c(l),t=c(m);c.fn.fullpage=function(d){function La(){d.css3&&(d.css3=Ma());d.anchors.length||(d.anchors=c("[data-anchor]").map(function(){return c(this).data("anchor").toString()}).get());e.setAllowScrolling(!0); -Na();q=n.height();e.setAutoScrolling(d.autoScrolling,"internal");var a=c(".fp-section.active").find(".fp-slide.active");a.length&&(0!==c(".fp-section.active").index(".fp-section")||0===c(".fp-section.active").index(".fp-section")&&0!==a.index())&&T(a);ja();ka();n.on("load",function(){var a=l.location.hash.replace("#","").split("/"),c=a[0],a=a[1];c&&(d.animateAnchor?U(c,a):e.silentMoveTo(c,a))})}function Na(){h.css({height:"100%",position:"relative"});h.addClass("fullpage-wrapper");c("html").addClass("fp-enabled"); +(function(c,l){"function"===typeof define&&define.amd?define(["jquery"],function(m){return l(m,c,c.document,c.Math)}):"undefined"!==typeof exports?module.exports=l(require("jquery"),c,c.document,c.Math):l(jQuery,c,c.document,c.Math)})("undefined"!==typeof window?window:this,function(c,l,m,p,D){var n=c(l),t=c(m);c.fn.fullpage=function(d){function La(){d.css3&&(d.css3=Ma());d.anchors.length||(d.anchors=c("[data-anchor]").map(function(){return c(this).data("anchor").toString()}).get());Na();e.setAllowScrolling(!0); +q=n.height();e.setAutoScrolling(d.autoScrolling,"internal");var a=c(".fp-section.active").find(".fp-slide.active");a.length&&(0!==c(".fp-section.active").index(".fp-section")||0===c(".fp-section.active").index(".fp-section")&&0!==a.index())&&T(a);ja();ka();n.on("load",function(){var a=l.location.hash.replace("#","").split("/"),c=a[0],a=a[1];c&&(d.animateAnchor?U(c,a):e.silentMoveTo(c,a))})}function Na(){h.css({height:"100%",position:"relative"});h.addClass("fullpage-wrapper");c("html").addClass("fp-enabled"); h.removeClass("fp-destroyed");Oa();c(".fp-section").each(function(a){var b=c(this),g=b.find(".fp-slide"),f=g.length;a||0!==c(".fp-section.active").length||b.addClass("active");b.css("height",q+"px");d.paddingTop&&b.css("padding-top",d.paddingTop);d.paddingBottom&&b.css("padding-bottom",d.paddingBottom);"undefined"!==typeof d.sectionsColor[a]&&b.css("background-color",d.sectionsColor[a]);"undefined"!==typeof d.anchors[a]&&b.attr("data-anchor",d.anchors[a]);"undefined"!==typeof d.anchors[a]&&b.hasClass("active")&& V(d.anchors[a],a);d.menu&&d.css3&&c(d.menu).closest(".fullpage-wrapper").length&&c(d.menu).appendTo(r);0');b.parent().wrap('
');a.find(".fp-slidesContainer").css("width",f+"%");1
');