https://bugs.kde.org/show_bug.cgi?id=445564
Bug ID: 445564 Summary: With HiDPI scaling, rotating canvas back and forth cause offset of viewport. Product: krita Version: unspecified Platform: Compiled Sources OS: Linux Status: REPORTED Severity: minor Priority: NOR Component: General Assignee: krita-bugs-n...@kde.org Reporter: asr...@gmail.com Target Milestone: --- SUMMARY With HiDPI scaling(probably >= 175%), rotating canvas back and forth cause offset of viewport. STEPS TO REPRODUCE 1. create image under OS 200% scaling 2. use mouse middle button + shift to rotate canvas back and forth several times. OBSERVED RESULT The canvas moved a little bit towards the left top corner. EXPECTED RESULT Canvas stays at center. SOFTWARE/OS VERSIONS Linux/KDE Plasma: Debian sid Qt Version: 5.15.2 ADDITIONAL INFORMATION This seems to be caused by snapToDevicePixel in KisCoordinatesConverter::correctOffsetToTransformation, a quick dirty fix is to add an float offset dp to the point passed in, depending on scaling factor. -- You are receiving this mail because: You are watching all bug changes.