Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Do touch events work with SVG? [duplicate]

I've been playing around a bit with SVG+ECMAScript, and I find it impressive.

I've recently found out that (X)HTML5 has a ‘touch events’ specification, so that browsers such as the Android browser, Firefox, and Chrome/Chromium have DOM support for multitouch screens.

Can I access these same events from ECMAScript in a standalone SVG file? (I.e. without any (X)HTML5.) If so, a simple example SVG file would be much appreciated.

Note: By ‘touch events’, I'm referring to standard touch events as defined by the W3C and not any proprietary API defined by Apple or others.

like image 568
James Haigh Avatar asked May 23 '13 18:05

James Haigh


1 Answers

There actually was discussion about this and it is possible.

More in this thread -> Can *you* get SVG on mobile browser accept mouse/touch events? I can't

like image 150
viktorbezdek Avatar answered Sep 29 '22 22:09

viktorbezdek