Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove dead code branches for touch events

  • Loading branch information...
commit c7346817425547c9b1bafded2cac723272941d00 1 parent 1adf6e8
@davidaurelio davidaurelio authored
Showing with 0 additions and 11 deletions.
  1. +0 −11 src/renderer/svg/svg_event_handlers.js
View
11 src/renderer/svg/svg_event_handlers.js
@@ -189,7 +189,6 @@ define([
event.delta = domEvent.wheelDelta;
break;
- case 'touchend':
case 'mouseup':
targetId = data._dragId;
event.diffX = clientX - start[0];
@@ -201,22 +200,12 @@ define([
type = 'pointerup';
break;
- case 'touchstart':
- if (data._currentTouch) {
- // Don't allow other touches while once has yet to end.
- return;
- }
- data._currentTouch = domEvent.touches[0].identifier;
case 'mousedown':
data._dragId = targetId;
data._startEventPos = [clientX, clientY];
type = 'pointerdown';
break;
- case 'touchmove':
- if (domEvent.touches[0].identifier !== data._currentTouch) {
- return;
- }
case 'mousemove':
// Regular mousemove event (not dragging)
(event = cloneBasicEvent(event)).type = 'pointermove';
Please sign in to comment.
Something went wrong with that request. Please try again.