Created
March 20, 2019 04:50
-
-
Save Merazsohel/ca08402003bb830ea4612ad4f6c7f20a to your computer and use it in GitHub Desktop.
This file contains 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
if(navigator.userAgent.match(/MSIE 10/i) || | |
navigator.userAgent.match(/Trident\/7\./) || | |
navigator.userAgent.match(/Edge\/12\./)) { | |
$('body').on("mousewheel", function () { | |
event.preventDefault(); | |
var wd = event.wheelDelta; | |
var csp = window.pageYOffset; | |
window.scrollTo(0, csp - wd); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment