From: Igal Sapir Date: Wed, 30 Aug 2017 05:59:41 +0000 (-0700) Subject: removed mobile-specific code X-Git-Tag: v6.4.4-rc1~13^2~1^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=73ef2bb3d963362edb1c8fda2fc45c1430ac4d52;p=thirdparty%2Ffoundation%2Ffoundation-sites.git removed mobile-specific code --- diff --git a/js/foundation.reveal.js b/js/foundation.reveal.js index 250587a7e..adfa2700c 100644 --- a/js/foundation.reveal.js +++ b/js/foundation.reveal.js @@ -266,16 +266,10 @@ class Reveal extends Plugin { var _this = this; function addRevealOpenClasses() { - if (_this.isMobile) { - if(!_this.originalScrollPos) { - _this.originalScrollPos = window.pageYOffset; - } - $('html, body').addClass('is-reveal-open'); - } - else { - $('body').addClass('is-reveal-open'); - } + + $('body').addClass('is-reveal-open'); } + // Motion UI method of reveal if (this.options.animationIn) { function afterAnimation(){ @@ -400,21 +394,10 @@ class Reveal extends Plugin { this.$element.off('keydown.zf.reveal'); function finishUp() { - if (_this.isMobile) { - if ($('.reveal:visible').length === 0) { - $('html, body').removeClass('is-reveal-open'); - } - if(_this.originalScrollPos) { - $('body').scrollTop(_this.originalScrollPos); - _this.originalScrollPos = null; - } - } - else { - if ($('.reveal:visible').length === 0) { - $('body').removeClass('is-reveal-open'); - } - } + if ($('.reveal:visible').length === 0) { + $('body').removeClass('is-reveal-open'); + } Keyboard.releaseFocus(_this.$element);