Skip to content

Touch Rotation: Add an additional Snapped Rotation Mode

Sharaf Zaman requested to merge szaman/krita:touch-rotation-snapping into master

Test Plan

In Canvas Input Settings -> Zoom and Rotate Canvas, add a two finger drag gesture and switch between "Continuous Rotation Mode" and "Snapped Rotation Mode".

  1. Continuous Rotation Mode, should work like the way the action worked before.
  2. Snapped Rotation Mode allows the canvas to be rotated in the increments of ±15° after it detects the finger rotation of more than 15° (this is based on rotationThreshold variable, which can be tweaked if it still feels too sensitive).

Formalities Checklist

  • I confirmed this builds.
  • I confirmed Krita ran and the relevant functions work.
  • I tested the relevant unit tests and can confirm they are not broken. (If not possible, don't hesitate to ask for help!)
  • I made sure my commits build individually and have good descriptions as per KDE guidelines.
  • I made sure my code conforms to the standards set in the HACKING file.
  • I can confirm the code is licensed and attributed appropriately, and that unattributed code is mine, as per KDE Licensing Policy.

Merge request reports

Loading