Closed GoogleCodeExporter closed 9 years ago
This is by design. We do not want to have to run a (potentially expensive) hit
test operation on every mouse move event because we would have to do it for any
game regardless of whether it cared about mouse movement notifications. So we
only hit test on mouse press and then dispatch movement events to the layer hit
by the press until the mouse is released.
Mouse wheel events are also not supported by choice (and this is documented in
Layer.addListener(Mouse.Listener)). We could do a hit test on every wheel event
and dispatch the wheel event to the hit layer, so perhaps we can revisit this
choice.
If you want to dispatch mouse move events to layers, you'll have to add a
global mouse move listener and do the hit testing yourself.
Original comment by m...@samskivert.com
on 30 May 2012 at 3:56
Original issue reported on code.google.com by
tab...@broadinstitute.org
on 30 May 2012 at 3:45Attachments: