Skip to content

Instantly share code, notes, and snippets.

@KonnorRogers
Created November 4, 2025 00:56
Show Gist options
  • Save KonnorRogers/24458ee5cfcd0c9383a2cb49025467f5 to your computer and use it in GitHub Desktop.
Save KonnorRogers/24458ee5cfcd0c9383a2cb49025467f5 to your computer and use it in GitHub Desktop.
Apple Problem Code for keyboard scrolling: https://apps.apple.com/us/iphone/arcade
const nb = [
'ArrowDown',
'ArrowUp'
]
class Xs {
static windowKeyUpHandler(e) {
nb.includes(e.key) && e.preventDefault()
}
}
window.addEventListener('keydown', Xs.windowKeyUpHandler)
// Who does this? Why Apple?
// https://apps.apple.com/assets/index~BDdsLoyyey.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment