Last active
December 21, 2015 09:39
-
-
Save lenagroeger/6286696 to your computer and use it in GitHub Desktop.
prevent scrolling on iframe
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
| $('.overlaydiv').bind('mousewheel', function (e) { | |
| $(this).scrollTop($(this).scrollTop() - e.originalEvent.wheelDeltaY); | |
| //prevent page fom scrolling | |
| return false; | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment