fix(panel): pressed/released in the right order
This commit is contained in:
@@ -292,7 +292,7 @@ impl<B: Backend + ?Sized> PanelItem<B> {
|
|||||||
let (surface_id, button, state): (SurfaceID, u32, u32) = deserialize(message.as_ref())?;
|
let (surface_id, button, state): (SurfaceID, u32, u32) = deserialize(message.as_ref())?;
|
||||||
debug!(?surface_id, button, state, "Pointer button");
|
debug!(?surface_id, button, state, "Pointer button");
|
||||||
|
|
||||||
panel_item.pointer_button(&surface_id, button, state == 0);
|
panel_item.pointer_button(&surface_id, button, state != 0);
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
fn pointer_scroll_flex(
|
fn pointer_scroll_flex(
|
||||||
|
|||||||
Reference in New Issue
Block a user