From e86b1873c99428a548627355261db12cdeff4207 Mon Sep 17 00:00:00 2001 From: dog Date: Mon, 22 Jan 2024 13:57:56 +0300 Subject: [PATCH] reset lightboxes trackpad preventing --- src/components/_shared/Lightbox/Lightbox.tsx | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/components/_shared/Lightbox/Lightbox.tsx b/src/components/_shared/Lightbox/Lightbox.tsx index b4d399b8..aaa2ba9f 100644 --- a/src/components/_shared/Lightbox/Lightbox.tsx +++ b/src/components/_shared/Lightbox/Lightbox.tsx @@ -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)