fix: clamp angles to 0 below threshold

This commit is contained in:
Virt 2024-06-29 15:38:59 +02:00
commit 99e72b979d

View file

@ -272,6 +272,11 @@ void CDynamicCursors::calculate(EModeUpdate type) {
this->zoom = zoom;
this->angle = angle;
// clamp to zero at low angles, so that the normal position in tilt looks fine (and actually is 0)
if (std::abs(this->angle) < ((PI / 180) * **PTHRESHOLD))
this->angle = 0;
// lock software cursors if zooming
if (zoom > 1) {
if (!zoomSoftware) {