Skip to content
This repository has been archived by the owner on Nov 9, 2021. It is now read-only.

Stop propagation when Movable inside Movable? #187

Open
Jakub-Izbicki opened this issue Oct 8, 2020 · 0 comments
Open

Stop propagation when Movable inside Movable? #187

Jakub-Izbicki opened this issue Oct 8, 2020 · 0 comments

Comments

@Jakub-Izbicki
Copy link

Jakub-Izbicki commented Oct 8, 2020

Hi, I have this structure in one of my components, with one moveable inside another one:

<template>
  <Moveable> // moveable #1
    <div>
      <Moveable> // moveable #2
        <div>
        </div>
      </Moveable>
    </div>
  </Moveable>
</template>

Both moveables have draggable enabled and methods that handle drag as specified in vue example in this project's README.
When I am dragging moevable#2, moveable#1 also receives drag event and is moving as well. Is there any way I can easily stop drag event propagation from moveable#2 to not trigger on moveable#1?

I am using verison 1.8.9

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant