The simulator acts like the device is connected to a touch screen and sends events like a touch screen.
This means that it only sends a few mouse events and mostly touch events. Better yet is to use pointer events. They behave the most consistently between devices that use mouse input and touch input. / Jonas On Apr 12, 2014 12:47 PM, "Max baraitser smith" <[email protected]> wrote: > Hi, I am trying to make a small web game into a Firefox OS app. > > I am trying to manage my input using mouse events, I'm not sure if this is > the best way to do it, correct me if using another method might be better. > > Everything works nicely in the simulator, except the mouse events. When I > left click and hold the mouse down, I get no output (I've set the code to > log mouse up and down events). But as soon as I release the mouse it says > to events have been triggered: mousedown and mouseup. > > But if I right click. I get the events at the right time and everything > works well. > > Thanks in advance > _______________________________________________ > dev-b2g mailing list > [email protected] > https://lists.mozilla.org/listinfo/dev-b2g >
_______________________________________________ dev-b2g mailing list [email protected] https://lists.mozilla.org/listinfo/dev-b2g
