1
0
mirror of https://github.com/webslides/WebSlides.git synced 2025-08-31 16:51:47 +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);