summaryrefslogtreecommitdiffstats
path: root/src/event.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/event.js')
-rw-r--r--src/event.js13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/event.js b/src/event.js
index 4f587d2..32c2be2 100644
--- a/src/event.js
+++ b/src/event.js
@@ -1,5 +1,16 @@
-var eventTypes = ['click', 'dblclick', 'mousedown', 'mouseup', 'mouseover', 'mouseout', 'mousemove'].forEach(function(e) {
+[ 'click',
+ 'dblclick',
+ 'mousedown',
+ 'mouseup',
+ 'mouseover',
+ 'mouseout',
+ 'mousemove',
+ 'touchstart',
+ 'touchend',
+ 'touchmove',
+ 'touchcancel' ].forEach(function(e) {
+
// add event to SVG.Elment
SVG.Element.prototype[e] = function(f) {
var s = this;