Merge pull request #374 from Discours/fix/lightbox

reset lightboxes trackpad preventing
This commit is contained in:
Arkadzi Rakouski 2024-01-22 14:09:47 +03:00 committed by GitHub
commit e40a477538
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -78,9 +78,6 @@ export const Lightbox = (props: Props) => {
event.preventDefault()
event.stopPropagation()
const isTrackpad = event.ctrlKey
if (isTrackpad) return
let scale = zoomLevel()
scale += event.deltaY * -0.01
scale = Math.min(Math.max(0.125, scale), 4)