Skip to content

Commit

Permalink
Prevent default on wheel
Browse files Browse the repository at this point in the history
  • Loading branch information
kettek committed Oct 30, 2024
1 parent 05e42ef commit eb12ed1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions frontend/src/components/common/Input.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
dispatch('input', value)
}
function onWheel(e: WheelEvent) {
e.preventDefault()
const target = e.target as HTMLInputElement
value = target.value
if (e.deltaY > 0) {
Expand Down

0 comments on commit eb12ed1

Please sign in to comment.