From 2f185fcd60f3823f765c1f65f93275738a4eb9bb Mon Sep 17 00:00:00 2001 From: Triston Armstrong Date: Sun, 6 Oct 2024 10:05:42 -0400 Subject: [PATCH] prevent resize from moving card --- src/components/ImageCard.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/ImageCard.tsx b/src/components/ImageCard.tsx index 7f77c6e..146f73e 100644 --- a/src/components/ImageCard.tsx +++ b/src/components/ImageCard.tsx @@ -4,7 +4,6 @@ import { useDebounce } from "../utils/useDebounce" import { LayerEnum } from "../utils/enums" import images, { ImageCardType } from "../signals/images" import { updateLocalStorage } from "../utils/localStorage" -import { noop } from "kaioken/utils" namespace ImageCard { export interface ImageCardProps { @@ -73,6 +72,7 @@ export function ImageCard({ key: itemKey, data: item }: ImageCard.ImageCardProps function _handleResizeMouseDown(e: MouseEvent) { + e.stopPropagation() initialResizeX.current = e.pageX initialResizeY.current = e.pageY pressed.value = true