Created
September 22, 2016 08:00
-
-
Save diego-betto/380bdca36fa38710a028efcb9b692c51 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
addEventListener(document, "touchstart", function(e) { | |
console.log(e.defaultPrevented); // will be false | |
e.preventDefault(); // does nothing since the listener is passive | |
console.log(e.defaultPrevented); // still false | |
}, Modernizr.passiveeventlisteners ? {passive: true} : false); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment