-
-
Save christoffer/ce54041dde1cac615833 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var scrollTopBeforeIframe = $window.scrollTop(); | |
$window.one('scroll', function(e) { | |
console.log('window scroll event @' + $window.scrollTop() + ', reverting to ' + scrollTopBeforeIframe); | |
$window.scrollTop(scrollTopBeforeIframe); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment