parent
23c7e68755
commit
d4268cfff8
|
@ -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 New Issue