summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2014-02-20 19:08:07 +0100
committerwout <wout@impinc.co.uk>2014-02-20 19:08:07 +0100
commit3c780bf88d8b02c5d260987a74d06928274a2dac (patch)
tree1591e8362f068384ade847bf1eb17d1f43bc8fcc /src
parent9995c05ef730a91e3bd3740882f2e37523f190d3 (diff)
downloadsvg.js-3c780bf88d8b02c5d260987a74d06928274a2dac.tar.gz
svg.js-3c780bf88d8b02c5d260987a74d06928274a2dac.zip
Re-added touch events
Diffstat (limited to 'src')
-rwxr-xr-xsrc/event.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/event.js b/src/event.js
index 2fc14bb..73e3ba5 100755
--- a/src/event.js
+++ b/src/event.js
@@ -11,7 +11,12 @@
, 'mouseout'
, 'mousemove'
, 'mouseenter'
- , 'mouseleave' ].forEach(function(event) {
+ , 'mouseleave'
+ , 'touchstart'
+ , 'touchmove'
+ , 'touchleave'
+ , 'touchend'
+ , 'touchcancel' ].forEach(function(event) {
/* add event to SVG.Element */
SVG.Element.prototype[event] = function(f) {