Fix pane grid mouse interactions
- Use `grabbing` interaction while dragging - Ignore grab interaction when dragging is disabled
This commit is contained in:
parent
69e288cad1
commit
dca99f35e9
2 changed files with 4 additions and 2 deletions
|
|
@ -341,6 +341,7 @@ where
|
|||
cursor_position,
|
||||
viewport,
|
||||
renderer,
|
||||
self.on_drag.is_some(),
|
||||
)
|
||||
})
|
||||
.max()
|
||||
|
|
@ -648,7 +649,7 @@ pub fn mouse_interaction(
|
|||
resize_leeway: Option<u16>,
|
||||
) -> Option<mouse::Interaction> {
|
||||
if action.picked_pane().is_some() {
|
||||
return Some(mouse::Interaction::Grab);
|
||||
return Some(mouse::Interaction::Grabbing);
|
||||
}
|
||||
|
||||
let resize_axis =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue