Gesture events in Firefox 3.5

View: New views
2 Messages — Rating Filter:   Alert me  

Gesture events in Firefox 3.5

by Romaric Pascal :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi !

I came accros this page about Gesture events on
developper.mozilla.org : https://developer.mozilla.org/En/DOM/Mouse_gesture_events.
This sounded cool to implement with a map interface so I decided to
give it a try. My first step was to find how I could register to the
events, so I tried :

function onSwipe(event){ alert("Swipe"); }
window.addEventListener("MozSwipeGesture",onSwipe,true);

But despite all my efforts, I cannot manage to get my little alert.
I'm using FF3.5 on Mac OS X on a Mac Book Pro supporting multitouch.

If anybody has a clue on why this doesn't work, it would be greatly
appreciated.

Regards,

Romaric Pascal
_______________________________________________
dev-tech-js-engine mailing list
dev-tech-js-engine@...
https://lists.mozilla.org/listinfo/dev-tech-js-engine

Re: Gesture events in Firefox 3.5

by SmauG-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

gesture events are still just for chrome. So Firefox UI and addons can
use them, but web content can't.

-S

Romaric Pascal wrote:

> Hi !
>
> I came accros this page about Gesture events on
> developper.mozilla.org : https://developer.mozilla.org/En/DOM/Mouse_gesture_events.
> This sounded cool to implement with a map interface so I decided to
> give it a try. My first step was to find how I could register to the
> events, so I tried :
>
> function onSwipe(event){ alert("Swipe"); }
> window.addEventListener("MozSwipeGesture",onSwipe,true);
>
> But despite all my efforts, I cannot manage to get my little alert.
> I'm using FF3.5 on Mac OS X on a Mac Book Pro supporting multitouch.
>
> If anybody has a clue on why this doesn't work, it would be greatly
> appreciated.
>
> Regards,
>
> Romaric Pascal


_______________________________________________
dev-tech-js-engine mailing list
dev-tech-js-engine@...
https://lists.mozilla.org/listinfo/dev-tech-js-engine