Remove block_mouse_down in favor of stop_mouse_events_except_scroll (#30401)
This method was added in #20649 to be an alternative of `occlude` which allows scroll events. It seems a bit arbitrary to only stop left mouse downs, so this seems like it's probably an improvement. Release Notes: - N/A
This commit is contained in:
@@ -958,11 +958,6 @@ pub trait InteractiveElement: Sized {
|
||||
self
|
||||
}
|
||||
|
||||
/// Stops propagation of left mouse down event.
|
||||
fn block_mouse_down(mut self) -> Self {
|
||||
self.on_mouse_down(MouseButton::Left, |_, _, cx| cx.stop_propagation())
|
||||
}
|
||||
|
||||
/// Block non-scroll mouse interactions with elements behind this element's hitbox. See
|
||||
/// [`Hitbox::is_hovered`] for details.
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user