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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user