Andreas Gal <[email protected]> wrote:
>
>Have you tried ontouchdown?
>
>Andreas
>
>On Sep 21, 2013, at 10:04 AM, Simon Pfundstein
><[email protected]> wrote:
>
>> Hi,
>> 
>> is there a way to let the FirefoxOS device vibrate as soon as the
>user taps onto the screen?
>> I mean at "touch DOWN" not "touch up"....
>> 
>> window.onclick = function() {
>>    navigator.vibrate(96);
>> }
>> Works but of course it vibrates as soon as the user releases the
>fringer from the screen. I want that it vibrates when the user taps on
>the screen. I also tried:
>> 
>> window.onmouseup = function() {
>>    navigator.vibrate(96);
>> }
>> but that just works like onclick.
>> 
>> Any ideas?
>> 
>> Have a nice day,
>> Simon
>> _______________________________________________
>> 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

touchstart

https://developer.mozilla.org/en-US/docs/Web/Reference/Events/touchstart
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to