From c4d1e305f641e2d2d294e91c8010b8aa88cc9a09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tr=C3=A8sAbhi?= <43380238+tresabhi@users.noreply.github.com> Date: Wed, 10 Apr 2024 09:41:55 -0500 Subject: [PATCH] feat: grabbing cursor --- src/app/tools/compare/page.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app/tools/compare/page.tsx b/src/app/tools/compare/page.tsx index 7e5b89ea5..f7dbdb273 100644 --- a/src/app/tools/compare/page.tsx +++ b/src/app/tools/compare/page.tsx @@ -376,6 +376,7 @@ export default function Page() { dropIndex = closest.index; closest.element.style.opacity = '1'; image.current!.style.position = 'fixed'; + image.current!.style.cursor = 'grabbing'; image.current!.style.zIndex = '1'; image.current!.style.left = `${initialRect.left + delta.x}px`; image.current!.style.top = `${initialRect.top + delta.y}px`; @@ -385,6 +386,7 @@ export default function Page() { image.current!.style.position = 'static'; image.current!.style.zIndex = 'unset'; + image.current!.style.cursor = 'grab'; insertionMarkers.forEach(({ element }) => { element.style.opacity = '0';