Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
let cancel = (e) => {
// Check if timer has a value or not
if (pressTimer !== null) {
clearTimeout(pressTimer)
pressTimer = null
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment