Skip to content

Instantly share code, notes, and snippets.

@dbachet
Last active December 16, 2015 21:39
Show Gist options
  • Save dbachet/5501410 to your computer and use it in GitHub Desktop.
Save dbachet/5501410 to your computer and use it in GitHub Desktop.
Stop default page scroll down if key down was pressed. /!\ Not working....
$(document).keyup (e) =>
switch e.which
# key down
when 40
e.preventDefault()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment