Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update ScrollArea drag velocity when drag stopped
Fixes #5174. The drag velocity was not being updated unless the cursor counted as "dragging", which only happens when it's in motion. This effectively guarantees that the drag velocity will never be zero, even if the cursor is not moving, and results in spurious scroll velocity being applied when the cursor is released. Instead, we update the velocity only when the drag is stopped, which is when the kinetic scrolling actually needs to begin.
- Loading branch information