Ensure the root of the widget is focusable.
You do not need more for this to work unless you have native button widgets.
- onMouseMove:
- onMouseDown:
- widget root:
The above prints for both overrides.
One note: you’re overriding the button down for the image widget (judging by the name):
Try it with the whole widget override instead. Otherwise the image may just handle it and the mouse move will never see it again. But if you do it for the entire widget, the input has nowhere else to go.