eclipsesource / graphical-lsp

Graphical language server platform for building web-based diagram editors
https://www.eclipse.org/glsp
Eclipse Public License 2.0
36 stars 8 forks source link

Support dragging while node and edge creation (#167, #168) #172

Closed planger closed 5 years ago

planger commented 5 years ago

Fix #168 by making the edge creation tool more resilient to mouse dragging operations during the operation.

This change also introduces DragAwareMouseListener to make it easier for mouse listeners based tools to react only to mouse up events without prior dragging or with prior dragging. The node creation tool as well as the edge creation tool now only react to non-dragging mouse up events, so that the user can drag in the diagram without changing the state of the node or edge creation tools. This fixes #167.