vue-drag-resize icon indicating copy to clipboard operation
vue-drag-resize copied to clipboard

Click event conflicts with drag

Open CodeFly16 opened this issue 4 years ago • 2 comments

When I add a clickable button, if I drag the button, the button click event will also be triggered when the mouse is released, how can I solve it?

CodeFly16 avatar May 29 '20 13:05 CodeFly16

hello,when I run the code,the project can not run and can not npm install

Reviewlike avatar Nov 05 '20 08:11 Reviewlike

Hi, Same issue in my case but I found the solution.

You need to use this event @activated rather then @click.

E.g : <vue-drag-resize @activated="onActivated">

jahanzaibtariq avatar Jan 27 '21 08:01 jahanzaibtariq