From: vincent@cubedesigners.com Date: Fri, 29 Jul 2016 13:10:49 +0000 (+0000) Subject: Better handling of resize events | wip #4 @0:25 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=bf27000189502059a23379217b2a85c2a7716ccc;p=fluidbook-v3.git Better handling of resize events | wip #4 @0:25 --- diff --git a/framework/application/configs/application.ini b/framework/application/configs/application.ini index ff68c52..d0a0eb8 100644 --- a/framework/application/configs/application.ini +++ b/framework/application/configs/application.ini @@ -61,7 +61,7 @@ compat_ie = 9 dev = true firephp = true -minify.js = true +minify.js = false seo.universalAnalytics = UA-4339912-9 diff --git a/js/002-common.js b/js/002-common.js index 45549bf..217de63 100644 --- a/js/002-common.js +++ b/js/002-common.js @@ -46,8 +46,15 @@ function load_common() { }); - $(window).on('cubeitresize', resize); + $(window).on('cubeitresize', _resize); + _resize(); +} + +function _resize(){ resize(); + setTimeout(function(){ + resize(); + },150); } function resize() { diff --git a/js/220-exemples.js b/js/220-exemples.js index 83e72f6..e5e10ee 100644 --- a/js/220-exemples.js +++ b/js/220-exemples.js @@ -3,7 +3,7 @@ registerLoader(load_exemples); var sort = ''; function load_exemples() { - $(window).on('cubeitresize', resizeExemples); + $(window).on('fluidbookresize', resizeExemples); resizeExemples(); } diff --git a/js/410-features.js b/js/410-features.js index 33ea7c4..24c363e 100644 --- a/js/410-features.js +++ b/js/410-features.js @@ -2,7 +2,7 @@ registerLoader(load_features, true); function load_features() { - $(window).on('cubeitresize', resizeFeaturePage); + $(window).on('fluidbookresize', resizeFeaturePage); resizeFeaturePage(); $(window).on('cubeitopenpopup', function() { diff --git a/less/215-home-references.less b/less/215-home-references.less index 4e6a486..e8e1de4 100644 --- a/less/215-home-references.less +++ b/less/215-home-references.less @@ -13,8 +13,7 @@ section.references { overflow-x: scroll; overflow-y: hidden; -webkit-overflow-scrolling: touch; - scroll-snap-type: mandatory; - scroll-snap-points-x: repeat(100%); + } .scrollHolder {