ui: Fix scrollbar mouse down handler (#35131)

Follow-up to https://github.com/zed-industries/zed/pull/35121 - in the
process of adding the check for the left mouse button to the guard
(which was practically already there before, just not in the mouse-down
listener), I accidentally removed the negation for the bounds check.
This PR fixes this.

Release Notes:

- N/A
This commit is contained in:
Finn Evers 2025-07-26 17:45:13 +02:00 committed by GitHub
parent e911364664
commit 08402e25e0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -339,7 +339,7 @@ impl Element for Scrollbar {
move |event: &MouseDownEvent, phase, _, _| {
if !phase.bubble()
|| event.button != MouseButton::Left
|| bounds.contains(&event.position)
|| !bounds.contains(&event.position)
{
return;
}