On Wednesday, 16 April 2014 13:01:16 UTC+1, Julien Wajsberg  wrote:
> Le 12/04/2014 11:46, [email protected] a écrit :
> 
> > Hi, I have developed a small web app and have been trying to make it into a 
> > ffos app.
> 
> >
> 
> > I am trying to use mouse events to detect if the screen is being touched, 
> > but in the Firefox OS simulator if I left click, I get no feedback until I 
> > release the mouse and then it tells me that both the mousedown and mouseup 
> > events have been triggered.
> 
> >
> 
> > If I right click though everything works fine and the events trigger like 
> > in a browser.
> 
> >
> 
> > How can I solve this?
> 
> >
> 
> 
> 
> The Simulator has some behaviors similar to what happens on a real
> 
> device. On a real device, when you "touch" the screen, you don't get
> 
> mousedown/mouseup/click until you remove the finger. Note that all
> 
> mobile devices behave the same (iOS, Android...). There is a real reason
> 
> behind this, but I don't remember it right now ;)
> 
> 
> 
> The ideal solution is to use touchstart/touchend in addition to your
> 
> mouse events.
> 
> 
> 
> Hope this helps,
> 
> 
> 
> -- 
> 
> Julien

Ok thanks, it seems that touches are probably a better option and those seem to 
be working great.
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to