archimatetool / archi

Archi: ArchiMate Modelling Tool
https://www.archimatetool.com
MIT License
914 stars 267 forks source link

[Feature Request] Zoom at point of mouse cursor #1031

Open yellek opened 3 months ago

yellek commented 3 months ago

As a user when I zoom in I would like the centre of the zoomed in window to be where the mouse pointer is rather than the centre of the canvas.

This is a common feature in many other zoomable displays. Not a huge issue to work around with the navigation window or middle mouse button but it would be nice if what I was focussing on filled the screen when I zoom rather than the zoom going to a completely different part of the diagram.

Phillipus commented 3 months ago

Unless you can supply a pull request implementing this it won't change as it's part of the Eclipse Graphical Eclipse Framework.

Phillipus commented 3 weeks ago

Re-opened this so that #1046 is not a duplicate.

I think that any changes would have to be applied here - https://github.com/archimatetool/archi/blob/master/org.eclipse.gef/src/org/eclipse/gef/editparts/ZoomManager.java - and the current viewport size needs to be accounted for as well as not referencing the mouse position when "Zoom Normal" is applied.

If anyone would like to contribute a PR for this please do.