CaptureMouse & MouseEvents

Hi

Is it correct to assume that when using someIEventHandler.CaptureMouse() all mouse events will exclusively be sent to someIEventHandler and no other callback will be called?

In my use case I have 2 visual elements one above the other (position absolute). One is using a manipulator with CaptureMouse, second one just register a callback for mouse move.

When using CaptureMouse second is not receiving any mouse events.

Thanks.

You are correct. Response from a colleague:

When an element captures the mouse, mouse events are targeted to it instead of being targeted to the element under the mouse. However events are still dispatched through the hierarchy (with bubble up and trickle down)
Only the target computation is changed by the capture.

Sebastien

1 Like