Skip to content

Commit 2b87bbe

Browse files
committed
Don't handle hover
1 parent 511fc69 commit 2b87bbe

File tree

1 file changed

+4
-1
lines changed
  • backend-embedded-graphics/src/widgets

1 file changed

+4
-1
lines changed

backend-embedded-graphics/src/widgets/canvas.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,10 @@ where
252252
}
253253
}
254254

255-
InputEvent::PointerEvent(position, PointerEvent::Drag | PointerEvent::Hover) => {
255+
// We want controls drawn above the Canvas to get input events.
256+
InputEvent::PointerEvent(_, PointerEvent::Hover) => None,
257+
258+
InputEvent::PointerEvent(position, PointerEvent::Drag) => {
256259
if bounds.contains(position) {
257260
Some(0)
258261
} else {

0 commit comments

Comments
 (0)