Fix slider capturing all key events when hovered

Fixes #2923
This commit is contained in:
Héctor Ramón Jiménez 2025-10-08 04:41:13 +02:00
parent a064241a6b
commit 87ac14ec48
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
2 changed files with 4 additions and 8 deletions

View file

@ -358,8 +358,6 @@ where
shell.publish(on_release);
}
state.is_dragging = false;
shell.capture_event();
}
}
Event::Mouse(mouse::Event::CursorMoved { .. })
@ -395,14 +393,14 @@ where
match key {
Key::Named(key::Named::ArrowUp) => {
let _ = increment(current_value).map(change);
shell.capture_event();
}
Key::Named(key::Named::ArrowDown) => {
let _ = decrement(current_value).map(change);
shell.capture_event();
}
_ => (),
}
shell.capture_event();
}
}
Event::Keyboard(keyboard::Event::ModifiersChanged(

View file

@ -360,8 +360,6 @@ where
shell.publish(on_release);
}
state.is_dragging = false;
shell.capture_event();
}
}
Event::Mouse(mouse::Event::CursorMoved { .. })
@ -395,14 +393,14 @@ where
match key {
Key::Named(key::Named::ArrowUp) => {
let _ = increment(current_value).map(change);
shell.capture_event();
}
Key::Named(key::Named::ArrowDown) => {
let _ = decrement(current_value).map(change);
shell.capture_event();
}
_ => (),
}
shell.capture_event();
}
}
Event::Keyboard(keyboard::Event::ModifiersChanged(modifiers)) => {