Remove flicker from rotation and zoom notices
The rotation notice now no longer jitters between -0.0 and 0.0, instead always showing the latter in case of a zero-ish rotation.
When using e.g. a two-finger gesture to both zoom and rotate simultaneously, the messages now combine into a single notice instead of flickering back and forth between each other.
Test Plan
- Make a slight canvas rotation that doesn't exceed the snapping around zero degrees. Observe that the rotation popup notice stays on 0.0 instead of jittering between -0.0 and 0.0.
- Use a canvas input that both zooms and rotates simultaneously. Observe that the popup message shows both.
- Zoom and rotate the canvas distinctly. Observe that you still only get a single message unless you do it within half a second of each other.
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. -
Does the patch add a user-visible feature? If yes, is there a documentation MR ready for it at Krita Documentation Repository?
Reminder: the reviewer is responsible for merging the patch, this is to ensure at the least two people can build the patch. In case a patch breaks the build, both the author and the reviewer should be contacted to fix the build. If this is not possible, the commits shall be reverted, and a notification with the reasoning and any relevant logs shall be sent to the mailing list, kimageshop@kde.org.