prevent resize from moving card

This commit is contained in:
Triston Armstrong 2024-10-06 10:05:42 -04:00
parent da40a13b83
commit 2f185fcd60

View File

@ -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