Created
March 15, 2020 18:37
-
-
Save projektorius96/fdaeeb272303548582df14f644eca7d3 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
// Solution to this: https://www.chromestatus.com/features/6662647093133312 | |
window.addEventListener("wheel", function (e) {e.preventDefault()}, {passive: false}); // no more mouse wheel scrolling [both sides] | |
// window.addEventListener("wheel", function (e) {e.preventDefault()}, {passive: true}); this is default behaviour |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment