KarthikAravindR / infinite-canvas

MIT License
24 stars 10 forks source link

Drag and Drop components within the Infinite Canvas #8

Open aragop25 opened 5 months ago

aragop25 commented 5 months ago

Bug description

I am trying to use the Draggable component (via react-draggable) to place components within the Infinite Canvas that can be draggable. This will allow for a "workspace" environment. When I try to use the Draggable component, I have an issue where clicking on the component that should be draggable, ends up moving the canvas around instead.

Expected result

There needs to be some differentiation between clicking on the Canvas and on the Draggable component.

Actual result

The canvas itself moves around instead of the component that should be draggable.

Is there a way to update the InfiniteCanvas component such that custom component can be draggable within the canvas to give a "workspace" feel

Steps to reproduce

1. 2. 3.

Your Environment

KarthikAravindR commented 4 months ago

Hi @aragop25, I understand what you are facing and I will try to fix this. Thanks for reaching out.