Created
January 16, 2017 14:33
-
-
Save RitaDias/21cd5404e028393e13ef9b7a0290a21b to your computer and use it in GitHub Desktop.
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
if (dragDirection === "vertical") { | |
lastX = currentX; | |
lastY = currentY; | |
} else { | |
evt.preventDefault(); | |
// ... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment