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

Allow resize in dragstart

Open arthabus opened this issue 5 years ago • 2 comments

I have a case where I need to change the vue-draggable-resizable element width and height when user clicked on it but just before drag started.

Is there a way to do that in dragStart? It seems the current code doesn't allow resize during drag. Is there a way to fire dragStart before setting the "dragging" flag to true?

arthabus avatar Mar 13 '20 17:03 arthabus

Have you found a way?

MovingbricksInIT avatar Dec 07 '20 01:12 MovingbricksInIT

@MovingbricksInIT - I was able to meet my requirement by altering the source code. Of course I can't use it as npm now and I ship the lib right inside my project.

I don't quite remember what exactly I've changed back then, but here is the altered main file that I ended up using: https://gofile.io/d/LQizjv

arthabus avatar Dec 08 '20 11:12 arthabus