Fix tracking slide zones are not intuitive under certain UI scale/zoom #119971

Merged
Sergey Sharybin merged 2 commits from Sergey/blender:fix_119773 into main 2024-04-22 14:44:52 +02:00

2 Commits

Author SHA1 Message Date
Sergey Sharybin 0cdb73aff7 Merge branch 'main' into fix_119773 2024-04-22 14:37:07 +02:00
Sergey Sharybin 47459e6ca3 WIP: Fix #119773: Tracking slide zones are not intuitive
This is a regression caused by some previous refactor of the code,
which was preparing it for transition to a tool-based tracking
workflow. Some of the hot zones got tweaked, and a change in the
behavior was done so that when click happens far away from any
slidable marker "widget" all markers gets de-selected (which
matches behavior in 3D viewport).

The pixel tolerance did not apply UI scale factor, and applied
zoom level after squaring (which is wrong calculation of pixel
space in screen space).
2024-03-27 17:55:27 +01:00