diff --git a/backend-embedded-graphics/src/widgets/canvas.rs b/backend-embedded-graphics/src/widgets/canvas.rs index 3ecd2ef..5b62dbf 100644 --- a/backend-embedded-graphics/src/widgets/canvas.rs +++ b/backend-embedded-graphics/src/widgets/canvas.rs @@ -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 {