Исправление фонового скролла у изображения

This commit is contained in:
RoyceDa
2026-02-24 18:53:04 +02:00
parent 7c806149b3
commit 0b3bdface8

View File

@@ -87,6 +87,7 @@ export function ImageViewer(props : ImageViewerProps) {
// Wheel zoom (zoom to cursor)
const onWheel = (e: React.WheelEvent<HTMLImageElement>) => {
//e.preventDefault();
e.stopPropagation();
const rect = e.currentTarget.getBoundingClientRect();
const mouseX = e.clientX - rect.left;
const mouseY = e.clientY - rect.top;