Skip to content
Browse files

Bring touch events back into the main switch block

  • Loading branch information...
1 parent c734681 commit 183f87d72a9630f27216709a4005b01a289eb302 @davidaurelio davidaurelio committed Feb 22, 2013
Showing with 6 additions and 5 deletions.
  1. +6 −5 src/renderer/svg/svg_event_handlers.js
View
11 src/renderer/svg/svg_event_handlers.js
@@ -171,12 +171,13 @@ define([
var last = data._lastEventPos || [clientX, clientY];
var start = data._startEventPos || [clientX, clientY];
- if (/^touch/.test(domEvent.type)) {
- this.handleTouchEvent(domEvent);
- return;
- }
-
switch (type) {
+ case 'touchstart':
+ case 'touchmove':
+ case 'touchend':
+ case 'touchcancel':
+ this.handleTouchEvent(domEvent);
+ return;
case 'dblclick':
type = 'doubleclick';

0 comments on commit 183f87d

Please sign in to comment.
Something went wrong with that request. Please try again.