1
0
mirror of https://github.com/webslides/WebSlides.git synced 2025-08-14 17:14:43 +02:00

Fixing document.scrollingElement not working in Firefox

This commit is contained in:
Luis Sacristán
2017-08-10 22:34:53 +02:00
parent fc1a733d6f
commit e6de10e449
4 changed files with 6 additions and 6 deletions

View File

@@ -158,7 +158,7 @@ export default class Zoom {
this.ws_.disable();
this.zws_.el.classList.add('in');
const wrapCSS = window.getComputedStyle(this.zws_.grid);
const scrollingElement = document.scrollingElement || document.body;
const scrollingElement = document.body;
scrollTo(actualCurrent.parentNode.offsetTop
+ DOM.parseSize(wrapCSS.paddingTop), 50, () => {}, scrollingElement);

View File

@@ -1,7 +1,7 @@
/*!
* Name: WebSlides
* Version: 1.3.1
* Date: 2017-08-06
* Date: 2017-08-10
* Description: Making HTML presentations easy
* URL: https://github.com/webslides/webslides#readme
* Credits: @jlantunez, @LuisSacristan, @Belelros

View File

@@ -1,7 +1,7 @@
/*!
* Name: WebSlides
* Version: 1.3.1
* Date: 2017-08-06
* Date: 2017-08-10
* Description: Making HTML presentations easy
* URL: https://github.com/webslides/webslides#readme
* Credits: @jlantunez, @LuisSacristan, @Belelros
@@ -3026,7 +3026,7 @@ var Zoom = function () {
_this3.ws_.disable();
_this3.zws_.el.classList.add('in');
var wrapCSS = window.getComputedStyle(_this3.zws_.grid);
var scrollingElement = document.scrollingElement || document.body;
var scrollingElement = document.body;
Object(__WEBPACK_IMPORTED_MODULE_2__utils_scroll_to__["a" /* default */])(actualCurrent.parentNode.offsetTop + __WEBPACK_IMPORTED_MODULE_0__utils_dom__["a" /* default */].parseSize(wrapCSS.paddingTop), 50, function () {}, scrollingElement);
}, 50);

File diff suppressed because one or more lines are too long