forked from Mirrors/elk
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