mirror of
https://github.com/wolfpld/tracy.git
synced 2026-10-14 12:55:24 +00:00
`HandleTimelineMouse` did the following - `m_highlight.active = true` when clicked - update range while dragging - `m_highlight.active = false` when not dragging This causes issues when `IsMouseClickReleased` is called somewhere else as - `mousePotentialClickRelease` is set to true on click - At beginning of frame, `mouseDragging` is set to `false` as long as `mousePotentialClickRelease` is `true` and mouse delta is under the drag threshold - This means that if the mouse didn't move enough in the duration of a frame, highlight would immediately stop, even though we were still holding the mouse button down Instead, it now only stops highlighting once the mouse is no longer down (ie: has been "released", cursor having moved or not)