Skip to content

Commit

Permalink
Fix passive listeners on touchstart event
Browse files Browse the repository at this point in the history
  • Loading branch information
nprokopenko202 committed Mar 3, 2023
1 parent b10b1b2 commit 6845ad8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bootstrap-input-spinner.js
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@
e.preventDefault()
}
callback(e)
}, {passive: true})
}, {passive: false})
element.addEventListener("keydown", function (e) {
if ((e.keyCode === 32 || e.keyCode === 13) && !triggerKeyPressed) {
triggerKeyPressed = true
Expand Down

1 comment on commit 6845ad8

@shaack
Copy link
Owner

@shaack shaack commented on 6845ad8 Mar 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please explain the reason for this pr? And why did you return for this listener to {passive: false}?

Please sign in to comment.