]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commit
Fix reveal enableScroll calculation of scrollTop
authorSassNinja <kai.falkowski@gmail.com>
Wed, 22 Nov 2017 16:42:01 +0000 (17:42 +0100)
committerSassNinja <kai.falkowski@gmail.com>
Wed, 22 Nov 2017 16:42:01 +0000 (17:42 +0100)
commit7e675258c80c2500939e1a138ade5763be22ee73
tree2398f7f064c0cfc37b5e366b35895cf700cd268f
parenteaa79c89a8c5dc89f8fa1e6916ce5dea6cc55866
Fix reveal enableScroll calculation of scrollTop

The target scrollTop must be calculated BEFORE the is-reveal-open class gets removed.
Otherwise iOS is not able to determine the correct top value but uses "auto".
To add a scrollTop param to the disableScroll is not necessary but due to consistency I've done it here the same way.
js/foundation.reveal.js