You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Select Tool] Clicking with the select tool when zoomed in selects an area of 0 pixels #2009
changed the title [-][Select Tool] Sometimes it's possible to select an area of 0 pixels[/-][+][Select Tool] Clicking with the select tool when zoomed in selects an area of 0 pixels[/+]on Feb 26, 2026
I think the issue here is that RectangleHandle.HasDragged() does the comparison in view coordinates, so when zoomed in these are scaled up and the delta can become larger than the tolerance. At least with a touchpad, I saw a slight variation in the mouse positions between the mouse down and mouse up events, so this is amplified with the scaling
Probably this should instead just check whether the resulting rectangle is empty, since that's really what we care about
Hi @cameronwhite , I’d like to try solving this issue, do I need to be assigned? This is my first ever open‑source contribution so it might take a bit longer than exptected.
thanks for the interest! You can assign yourself but it's not strictly necessary.
There was a previous attempt at fixing this in PR #2022, so definitely should have a look at the changes and discussion there
Activity
[-][Select Tool] Sometimes it's possible to select an area of 0 pixels[/-][+][Select Tool] Clicking with the select tool when zoomed in selects an area of 0 pixels[/+]cameronwhite commentedon Mar 1, 2026
I think the issue here is that
RectangleHandle.HasDragged()does the comparison in view coordinates, so when zoomed in these are scaled up and the delta can become larger than the tolerance. At least with a touchpad, I saw a slight variation in the mouse positions between the mouse down and mouse up events, so this is amplified with the scalingProbably this should instead just check whether the resulting rectangle is empty, since that's really what we care about
Fix for PintaProject#2009
Jaafar-Kamalah commentedon Sep 1, 2026
Hi @cameronwhite , I’d like to try solving this issue, do I need to be assigned? This is my first ever open‑source contribution so it might take a bit longer than exptected.
cameronwhite commentedon Sep 1, 2026
thanks for the interest! You can assign yourself but it's not strictly necessary.
There was a previous attempt at fixing this in PR #2022, so definitely should have a look at the changes and discussion there
Jaafar-Kamalah commentedon Sep 12, 2026
I realized PR #2022 is still active, so I’ll step back from this issue.
Fix for #2009 (empty rectangle issue) (#2022)