Open ogallagher opened 2 years ago
This video illustrates the zoom origin issue:
I imagine it might make sense to completely overhaul the viewport and node transforms with usage of AffineTransform concatenation, but this could also be too drastic of a change.
The zoom scrolling doesn’t quite change the scale relative to the cursor location; it looks like something should be changed here:
https://github.com/ogallagher/fxgraph/blob/4643e37e5b4ff04c54180f2e20ce60073e57e9be/src/main/java/com/fxgraph/graph/ViewportGestures.java#L102-L143