Skip to content
This repository was archived by the owner on May 8, 2022. It is now read-only.
This repository was archived by the owner on May 8, 2022. It is now read-only.

prevent dragStop automate fire click event #44

@wulucxy

Description

@wulucxy

as non-delegate-drag.html example:

I have add onClick event:

d.id = "draggable_" + count++;
d.style.left = x + "px";
d.style.top = y + "px";
d.className = 'w';
+ d.addEventListener('click', () => {
+    console.log('clickkkkkk')
+ })
i.className = "inner";
d.appendChild(i);

when I dragStop the node element,click event fired。

So,how can I separate the dragStop event and click event?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions