Skip to content

Zooming improvements in the gradient editor

This MR contains 4 fixes/features:

  • On laptops which implement smooth scrolling (many of them) ctrl-scroll-zooming didn't work in the gradient editor because it expected integer deltas and ignored most smooth scroll events. This is now fixed.
  • Gradient editor now supports touchpad gesture zooming by pitch
  • Gradient editor now supports zoom focus i.e. zoom focuses the center point where the mouse pointer is. Previously zoom was centered and if the interesting point was on the side the user would have needed to pan the view a bit after zooming.
  • It was possible to zoom out of bounds of the gradient editor when zooming fast via touchpad scrolling. This is now fixed.

Please excuse me if I should have created 3 MRs. The code is interdependent so I wanted to avoid 3 MRs one after another and created only single MR for everything. Please let me know if I should create 3 separate MRs. If reviewed commit-by-commit each feature can be reviewed separately. (no longer relevant)

Edited by Povilas Kanapickas

Merge request reports