Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Option to disable moveable programmatically #178

Open
@chbert

Description

@chbert

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

No one assigned

    Projects

    Status

    Blocked

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp