Closed seahindeniz closed 2 years ago
@seahindeniz
okay I'll add this function on resize event.
@seahindeniz
moveable
0.29.1react-moveable
0.32.1preact-moveable
0.31.1ngx-moveable
0.25.1svelte-moveable
0.19.1lit-moveable
0.6.1vue-moveable
2.0.0-beta.8vue3-moveable
0.4.1moveable's new version is released.
use beforeResize
event
onBeforeResize={e => {
// direction
e.setFixedDirection([0, 0]);
}}
Environments
Description
Setting the
setFixedDirection
withonResizeStart
event is possible, but seems like we can't change its value without clicking on the handler again to change its value.I have a case where I need to change
setFixedDirection
value while I'm resizing an element (possibly withonResize
event). For example, when I resize an element, I want to holdShift
button to toggle the value so that I can have more functionality. Is there are way that we can achieve this without forcing theonResizeStart
event to be triggered again?