Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork27
Open
Description
Hi@vnphanquang, great work on svelte-put!
I'm trying to find a way to disable "moveable" in certain instances programmatically.
I have a moveable canvas and moveable nodes on them. I tried to use the ignore parameter (as describedhere), but since I load the nodes within another component, it does not seem to work in this case. So, when I move a node, the underlying canvas also moves. So I'm listening to nodes moving and, during this time, would need to disable the grid moveable.
Maybe there is a workaround for this without a disable option?
Thanks!
This is the HTML of the canvas component (the nodes are inside the Graph component and have the class "node"):
<divclass="canvas"class:disabledbind:this={canvasElement}use:movable={{limit: { delta: { x: `${$size.width * 2}px`, y: `${$size.height * 2}px` } },ignore: ".node"}}on:movablestart={onMoveableStart}on:movableend={onMoveableEnd}><Grid {gridElement} /><Graph bind:gridElement /></div>Metadata
Metadata
Assignees
Projects
Status
Blocked