How to do multitouch gestures with Raphael JS 2

726 views
Skip to first unread message

midimid

unread,
Jul 19, 2012, 3:07:32 PM7/19/12
to raph...@googlegroups.com
What's the easiest way to accomplish adding functionality for common multitouch gestures to Raphael? It doesn't appear to have anything built-in. At the moment I'm building everything manually for pinch/zoom.

And IMHO, the docs are severly lacking. For instance, while there are a number of touch functions, I have no clue what's being passed into the function, if anything.

Sebastian Gurin

unread,
Jul 19, 2012, 4:29:34 PM7/19/12
to raph...@googlegroups.com
hi I would like to document this as well in my raphael tutorial , but I do not have any device with multitouch support. However, looking at the code, I think raphaeljs rely on the html API, so I would use raphael touch* events just like other mouse events, and woprk with a native touch event object instead a mouse event object, like described here:

http://www.html5rocks.com/en/mobile/touch/

pd: anybody knows if these multitouch gestures can be simulated on a laptop touchpad ?

my 2 cents

charles thomas

unread,
Jul 19, 2012, 4:30:09 PM7/19/12
to raph...@googlegroups.com
Hi there,

there's a couple of us here, elaborating on the docs. The docs cover everything but we are trying to add some depth. The library is the best overall Vector Graphics one available and includes support for IE from 6.

We would be very interested to see this stuff you are building from scratch for pinch and Zoom.

The inclusion for mobile phones are marked with little mobile phone icons on the Additional helper page.
There is 8. I have 6 of the 8 working but cannot get the other 2 going! anyone?

Here's a link to one of the interactive examples, you'll see the others marked with the same icons.

Charles

From: midimid <guir...@gmail.com>
To: raph...@googlegroups.com
Sent: Thursday, July 19, 2012 8:07:32 PM
Subject: How to do multitouch gestures with Raphael JS 2

What's the easiest way to accomplish adding functionality for common multitouch gestures to Raphael? It doesn't appear to have anything built-in. At the moment I'm building everything manually for pinch/zoom.

And IMHO, the docs are severly lacking. For instance, while there are a number of touch functions, I have no clue what's being passed into the function, if anything.

--
You received this message because you are subscribed to the Google Groups "Raphaël" group.
To view this discussion on the web, visit https://groups.google.com/d/msg/raphaeljs/-/1gEN-fMdzi0J.
To post to this group, send an email to raph...@googlegroups.com.
To unsubscribe from this group, send email to raphaeljs+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/raphaeljs?hl=en-GB.


Reply all
Reply to author
Forward
0 new messages