mirror of
https://github.com/elk-zone/elk.git
synced 2024-11-04 16:09:59 +00:00
parent
23c7e68755
commit
d4268cfff8
1 changed files with 6 additions and 0 deletions
|
@ -22,6 +22,12 @@ useImageGesture(img, {
|
|||
},
|
||||
})
|
||||
|
||||
// stop global zooming
|
||||
useEventListener('wheel', (evt) => {
|
||||
if (evt.ctrlKey && (evt.deltaY < 0 || evt.deltaY > 0))
|
||||
evt.preventDefault()
|
||||
}, { passive: false })
|
||||
|
||||
const keys = useMagicKeys()
|
||||
|
||||
whenever(keys.arrowLeft, prev)
|
||||
|
|
Loading…
Reference in a new issue