-
-
Notifications
You must be signed in to change notification settings - Fork 637
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error thrown when edge dragging #695
Comments
edge and edgeDraggable cannot be used together. use only one. Or what features do you want? |
Hello, @daybrush! I am trying to reproduce Canva's functionality on this. When I am using all possible values for renderDirections (N, S, E, W + corners), I am using edge = true and edgeDraggable = false, which works fine, because it allows me to resize using the whole line, not just the resize drag. Would it be possible to achieve something like this? Is there a way to pass an array of directions for edge/ edgeDraggable props? Thank you! |
I'll add this feature to next release. |
moveable's new version is released. use edge as array type. edge={["n", "s"]} |
Works perfectly. Thank you so much! |
Hello @daybrush! This issue reappeared in 0.38.1. Please check this code and try dragging using the N or S edge: Thank you! |
moveable's new version is released. |
Thank you! It's working again in 0.39.0 |
Environments
Description
When having resizable: true, edge: true and edgeDraggable: true, an error is thrown when I try to resize / drag from the edge of the object. How should we handle such cases?
Stack trace:
gesto.esm.js:433 Uncaught TypeError: Cannot read properties of undefined (reading 'prevClients')
at __proto.move (gesto.esm.js:433:29)
at setCustomDrag (moveable.esm.js:399:28)
at Object.dragControl (moveable.esm.js:5471:38)
at eval (moveable.esm.js:8248:35)
at Array.filter ()
at triggerAble (moveable.esm.js:8241:28)
at Object.eval [as listener] (moveable.esm.js:8349:22)
at eval (event-emitter.esm.js:87:12)
at Array.forEach ()
at __proto.emit (event-emitter.esm.js:86:28)
at Gesto._this.onDrag (gesto.esm.js:302:34)
Thank you!
The text was updated successfully, but these errors were encountered: