-
-
Notifications
You must be signed in to change notification settings - Fork 482
-
-
Notifications
You must be signed in to change notification settings - Fork 482
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
Sprite editor select tool jumbles the selection content when moved #1071
Comments
fixed here 38d4ed7 |
Hmm, your fix resets the selection when you drag outside of canvas, which can be an annoying behavior when you select close to the border and you accidentally slip out. Also, there's one corner case isn't fixed by either solution : when the user moves the selection while dragging. Please reopen. |
@nesbox The head ddelemeny@c2ee5b9 referenced above tries to wrap it all up (based on your solution). Please have a look. |
yes, you are right, it resets the selection |
So, I reverted my previous fix and just disabled keyboard handling when you dragging a selection rectangle. It looks much simpler than other solutions 9352a37. |
@nesbox I confirm the corrupting behavior is fixed in all cases I could test. However, in my opinion the select tool should follow this rule :
With your last fix, you kept the original behavior : the drag state is kept active if you release the mouse button out of canvas, and it will stay active until the user brings the pointer back in canvas. Please (sorry) consider implementing out-of-canvas release. |
I combined all the solutions in one here 0717a19 |
Haha, I'm a simple person : I see a nail sticking out of a board, I hit the nail with a hammer until it's not sticking out of the board. This specific nail is now perfectly leveled (as far as I can tell). Thank you! |
Compiled from 92ced62 on ubuntu
Selecting beyond the frame of the sprite editor causes the selected content to get corrupted when moved around with the arrow keys.
Steps to reproduce :
What's happening :
Keeping the mouse out of canvas prevents the release of the drag and the call to
copySelection
(set a breakpoint there to see it's not reached in that case). Therefore, when the selection is moved, it considers the pending selected area, but not the corresponding data.The text was updated successfully, but these errors were encountered: