Skip to content
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

Refactor mouse event handling in graphs #703

Open
rensink opened this issue Jul 26, 2012 · 4 comments
Open

Refactor mouse event handling in graphs #703

rensink opened this issue Jul 26, 2012 · 4 comments
Assignees
Labels

Comments

@rensink
Copy link
Collaborator

rensink commented Jul 26, 2012

I've refactored some of the mouse handling routines for the graph editor. Most noticeable changes are:
* Minimum drag distance added for usability.
* Callback for popup menu, popup menu no longer displayed after right-click drag operation or scroll.
* Moved selection handling to press/release handling rather than clicked.
* Edge creation by dragging with right mouse button. Although not entirely intuitive according to standard GUIs, I feel this might be less obtrusive than the current single click behavior.
* Dragging/zooming the graph while in selection/edit mode (no explicit switch to pan/zoom mode required):
- Panning with dragging middle mouse button.
- Zooming with scrolling middle mouse button using ctrl or right mouse button depressed. The position that is zoomed into remains fixed at the cursor.

The autoscroll is still interfering with some drag operations (for example, it tends to make the panning look jerky). This might need to be fixed at some point too, but it does not affect the new implementation any different than the old one.

Reported by: harrybharry

@rensink
Copy link
Collaborator Author

rensink commented Jul 26, 2012

New JGraphUI file

Original comment by: harrybharry

@rensink
Copy link
Collaborator Author

rensink commented Aug 30, 2012

I've updated the patch somewhat to fix a few bugs and to make the autoscroll (in my opinion) more useful.

Original comment by: harrybharry

@rensink
Copy link
Collaborator Author

rensink commented Aug 30, 2012

Patch for svn rev 4438

Original comment by: harrybharry

@rensink
Copy link
Collaborator Author

rensink commented Apr 17, 2013

  • Group: --> None

Original comment by: rensink

@rensink rensink self-assigned this Mar 7, 2024
@rensink rensink added enhancement New feature or request and removed feature-request labels Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant