vue-moveable icon indicating copy to clipboard operation
vue-moveable copied to clipboard

Basic resizable example needed

Open josvos opened this issue 5 years ago • 2 comments

I'm looking for the Vue version of the basic resizable example from the Moveable storybook (https://daybrush.com/moveable/storybook/?path=/story/basic--resizable), that only moves the corner/edge you drag when resizing and keeping the opposite corner/edge at the same place.

josvos avatar May 08 '20 22:05 josvos

Same, I have a sneaking suspicion it's in the css not the properties.

jakenuts avatar Apr 28 '21 06:04 jakenuts

Bump

I'm seeing a lot of examples out there where you can resize from the top and the bottom stays in place. Or you resize from the left and the right stays in place. But if I use the example code here, that just changes the width/height on resize, not matter what you drag, the object resizes to the right and down. Looking in the browser debug on working examples, I see that the x/y translation is being updated on resize but I don't see how to do it in the handleResize function. To add complexity, rotate the object and resize and it moves all over the place because the translation needs to be recalculated properly. How is this done the correct way with this library??

jifka avatar Aug 31 '21 17:08 jifka