Skip to content

Commit

Permalink
Don't handle hover
Browse files Browse the repository at this point in the history
  • Loading branch information
bugadani committed Mar 19, 2023
1 parent 52e5460 commit 67be654
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion backend-embedded-graphics/src/widgets/canvas.rs
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,10 @@ where
}
}

InputEvent::PointerEvent(position, PointerEvent::Drag | PointerEvent::Hover) => {
// We want controls drawn above the Canvas to get input events.
InputEvent::PointerEvent(_, PointerEvent::Hover) => None,

InputEvent::PointerEvent(position, PointerEvent::Drag) => {
if bounds.contains(position) {
Some(0)
} else {
Expand Down

0 comments on commit 67be654

Please sign in to comment.