-
Notifications
You must be signed in to change notification settings - Fork 30
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
Properly handle move feedback if mouse up happens outside window #399
Conversation
- Handle mouse down if we should be dragging as mouse up - Reset feedback if selection has changed -- Ensure element does not have to be selected to revert move -- Add method for listeners to selection service Fixes eclipse-glsp/glsp#1426
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const elementsToMove = this.getElementsToMove(target); | ||
const elementToMove = this.getElementsToMove(target); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why rename? Still multiple elements right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, based on the wrong out-dated commit, good catch!
Seems to work with 2.3.0-next.389 |
@ivy-lli I think this is indeed related to the |
@martin-fleck-at There also seems to be an issue if I drag outside of the window during a move and then release the mouse. |
Based on the comment by Tobias, I just fixed the variable naming. I'd suggest we merge the PR if everyone is happy with it and then see if the consumption works and if not I can work on a fix since it is otherwise quite hard to test. What do you think? EDIT: @tortmayr for your second comment: What should happen is that once you are back in the window, the element will follow the mouse cursor again and invalid clicks are correctly recognized. |
+Fix eclipse-glsp#401 Node creation (eclipse-glsp#402) + Resolve eclipse-glsp#398 Refactor TypeHints API (eclipse-glsp#399) + Resolve eclipse-glsp#396 RouterKind for FeedbackEdge (eclipse-glsp#397) + Reuse Sprotty's request/response system and remove custom solution(eclipse-glsp#404) + Add support for context menu and harmonize with command palette (eclipse-glsp#405)
+Fix eclipse-glsp#401 Node creation (eclipse-glsp#402) + Resolve eclipse-glsp#398 Refactor TypeHints API (eclipse-glsp#399) + Resolve eclipse-glsp#396 RouterKind for FeedbackEdge (eclipse-glsp#397) + Reuse Sprotty's request/response system and remove custom solution(eclipse-glsp#404) + Add support for context menu and harmonize with command palette (eclipse-glsp#405)
What it does
-- Ensure element does not have to be selected to revert move
-- Add method for listeners to selection service
Fixes eclipse-glsp/glsp#1426
How to test
See eclipse-glsp/glsp#1426
Follow-ups
Changelog