Исправление фонового скролла у изображения
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user