Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

1 decade ago by kicktheken

'mouseup' and 'touchend' event should be bounded from the window element and not the canvas element because when you drag outside of the canvas element and release, the engine will still think the mouse is in the pressed state when it returns to the canvas.

1 decade ago by tknz

Yeah that is annoying. The keyboard events also get stuck leaving the window while holding the key.

Is there a work around?

1 decade ago by kicktheken

You could simply change replace 'ig.system.canvas' with 'window' on the 'mouseup', 'touchend', and 'MSPointerUp' events in input.js. This is more of a post for Dominic to fix for future ImpactJS release since it is closed source.
Page 1 of 1
« first « previous next › last »