This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
I see only too zoom actions now, with top-left orientation and with center orientation, In my opinion it's good to zoom using current mouse position as center point.
ActionFactory.createMouseCenteredZoomAction method added. Also test.zoom.MouseCenteredZoomTest example added.
Created attachment 42861 [details] Patch
Sorry, it was my mistake about center point, it really should be mouse position oriented but not centered, what I mean: point of scene below mouse should stay below mouse position while zooming (if possible). Suggested realization sometimes works good, but try next use case: 1. zoom in to get scroll bars 2. scroll to right-bottom side of scene 3. move mouse pointer to left-top side of visible area 4. scroll wheel up-down a bit several times zoom will not be changed but scene will be scrolled to mouse position, you can even scroll to top-left side of the scene this way
My fault the previous behavior does not make much sense. Attaching a new patch with mouse-oriented behavior.
Created attachment 42876 [details] Second Patch
seems working in most cases, -except some border effects caused by scene handling when zoom out (i.e. view area don't show empty space behind "busy" area) - feature -and strange shift when: zoom in, move to right-bottom edge, zoom out, scene jumps from border, may be base reason the same as in first item, but In my opinion it's a bug
Fixed in main trunk. Version 2.3.