Created
June 29, 2018 11:30
-
-
Save rao123dk/a6a43110ef5f67377d31812b7be5324b to your computer and use it in GitHub Desktop.
Multiple events on single element.
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
['mousemove', 'touchmove'].forEach(function(e) { | |
window.addEventListener(e, mouseMoveHandler); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment