Merge pull request #288 from jenil27/master
auto-resizing doesn't work when `active` class is used anythere on a page
This commit is contained in:
@@ -784,7 +784,7 @@
|
|||||||
// rescale presentation when window is resized
|
// rescale presentation when window is resized
|
||||||
window.addEventListener("resize", throttle(function () {
|
window.addEventListener("resize", throttle(function () {
|
||||||
// force going to active step again, to trigger rescaling
|
// force going to active step again, to trigger rescaling
|
||||||
api.goto( document.querySelector(".active"), 500 );
|
api.goto( document.querySelector(".step.active"), 500 );
|
||||||
}, 250), false);
|
}, 250), false);
|
||||||
|
|
||||||
}, false);
|
}, false);
|
||||||
|
|||||||
Reference in New Issue
Block a user