vue-draggable-resizable icon indicating copy to clipboard operation
vue-draggable-resizable copied to clipboard

I found a bug

Open 2419930554 opened this issue 2 years ago • 1 comments

When I add an event to restore the default value of the drag box (W, h, x, y), a bug will appear when certain conditions occur

The problem appears in the method calcdraglimits in the source code of the Vue file. The obtained this.width is the result of the last drag, not the result of restoring the default value

Therefore, my suggestion is to put the X and Y monitoring functions in watch under the W and H monitoring functions in watch. I hope the author can repair them as soon as possible

2419930554 avatar Aug 22 '21 11:08 2419930554

Please provide an example using CodeSandbox or an equivalent service.

mauricius avatar Jan 10 '22 18:01 mauricius