Feedback
Canvas mouse events now work without a Paint handler
- Status
- Fixed
- Fixed in
- v26.8.4
- Source discussion
- https://forum.objo.dev/d/853-class-canvas-event-mousedown-doesnt-called-if-not-event-paint-handler-not-set
- Last updated
- 2026-08-17
Upvotes
0 upvotes
Uses your Objo forum account.
Public summary
A Canvas without a Paint handler does not receive mouse events because its blank surface is absent from native hit testing. A transparent Canvas is documented to remain interactive throughout its bounds, so MouseDown, MouseUp, MouseMove, MouseEnter, MouseExit, MouseWheel, Pressed, DoublePressed, and drag/drop interactions should work even when no pixels are drawn.