-
-
Notifications
You must be signed in to change notification settings - Fork 81
Open
Description
Description
When dragging anime overlays on the canvas, the cursor sometimes does not change to the grab/move cursor. This makes it unclear to users whether they can interact with the overlay.
Steps to Reproduce
- Add an image to the canvas
- Go to Overlays tab and add anime overlay characters
- Click on one of the anime overlays to select it
- Try to drag the overlay by clicking and dragging from different parts of the bounding box
- Notice that when hovering over certain areas (especially near edges or transparent areas), the cursor does not change from default pointer to grab cursor
Current Behavior
- Cursor remains as default pointer in certain areas
- Some areas within the overlay bounding box don't trigger the grab cursor
Expected Behavior
- The cursor should consistently show the grab cursor when hovering over any draggable overlay
- When actively dragging, the cursor should show the grabbing cursor
Root Cause
The issue is in components/overlays/overlay-renderer.tsx. The parent container div has cursor-grab class, but the child img element has object-contain CSS which doesn't fill the entire container. Areas outside the visible image content within the bounding box don't properly display the grab cursor.
Affected File
components/overlays/overlay-renderer.tsx - Line with: className="absolute pointer-events-auto cursor-grab active:cursor-grabbing"
Suggested Fix
- Apply cursor styles to an overlay wrapper that covers the entire clickable area
- Ensure the image container fills the entire parent bounds
- Consider pointer-events: none on img, with pointer-events: auto on container
Impact
- Affects UX when repositioning overlays
- Users may not realize certain areas are draggable
KartikLabhshetwar
Metadata
Metadata
Assignees
Labels
No labels