| Summary: | Ensure proper pivot point is chosen when zooming | ||
|---|---|---|---|
| Product: | [Tools] GEF | Reporter: | Alexander Nyßen <nyssen> |
| Component: | GEF MVC | Assignee: | gef-inbox <gef-inbox> |
| Status: | RESOLVED FIXED | QA Contact: | Alexander Nyßen <nyssen> |
| Severity: | normal | ||
| Priority: | P3 | CC: | matthias.wienand |
| Version: | unspecified | ||
| Target Milestone: | 3.10.0 (Mars) M5 | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Alexander Nyßen
Zomming is now performed relative to the mouse pointer location. The code is published on the master branch. Resolving as fixed. Reopen, because no proper pivot-point is selected when using pinch/spread for zooming. We need to adjust this as well. I applied the following changes: - Changed signature of FXPinchSpreadPolicy to no longer pass in event values (the event itself should be sufficient) - Make sure FXZoomOnPinchSpreadPolicy and FXZoomOnScrollPolicy use the same mechanism for zooming, by introduc ing an FXChangeViewportPolicy that performs the actual zoom (based on a FXChangeViewportOperation). Zooming for pinch/spread works as expected now. Matthias, could you please validate that zoom on scroll is still functional for you as well? With the workaround implemented in bug #430940, zooming with mouse wheel does not work on the Mac (because the non-synthesized mouse wheel events do not seem to be differentiable from the synthesized). We should investigate this as well, before resolving this. Re-opened #430940 and properly fixed it on Mac. I think we may resolve this here independently. What I would like to adjust (before closing as fixed) is the different stepping for gesture based zoom (5) and mouse wheel based (40) one. I think zooming should behave comparable fast in both cases, so we should compensate that. Opened #459243 to keep track of the different stepping when zooming. As #430940 keeps track of the underlying event handling issues, resolving this one as fixed in 3.10.0M5. |