-
Notifications
You must be signed in to change notification settings - Fork 33
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
Resize node with enabled GridSnapper results in out of synch mouse pointer #400
Comments
I think it has something to do with the But this is only a guess 🙂 |
It may be helpful for debugging to disable the CSS rule that hides the mouse pointer. I think I remember that @martin-fleck-at already mentioned an issue in this matter, which was the reason why the mouse pointer is set to |
Now when I try to remember a bit more, I think this was a conceptual issue with the snapper. |
@ivy-lli Hi, you are absolutely right in that this is a bit of an usual behavior. For reasons that Philip mentioned already we initially chose another approach and decided to hide the mouse pointer to avoid confusion. However, the more common solution seems to be to properly consider the snapped position and ensure that the mouse pointer and the resize handle are in sync. I opened a PR to fix that with eclipse-glsp/glsp-client#144: The nice thing is that now we can also show proper cursor feedback for moving and resizing. |
@ivy-lli I'm closing this task for now since the PR has been merged. If you have any follow-up issues please let us know. Thank you! |
Hi @martin-fleck-at, |
Hi all,
I just recognized that if you try to resize a node and you have the GridSnapper enabled the behavior is really strange because the mouse pointer will get out of sync with the resize handle.
With GridSnapper:
Without GridSnapper:
Sadly you the move cursor is not really visible here in the gif files but you can see the final cursor positions.
Reproduce:
resizeFeature
on the workflow-glsp examplesTaskNode
:modelHintModule
resizeFeature
to theTaskNode
DEFAULT_FEATURES
To disable the GridSnapper, I just removed the binding of it inside the di.config.ts file.
Tested in Chrome and Firefox.
Kind regards
Lukas
The text was updated successfully, but these errors were encountered: