Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed updateEventForLayer to support touch events.

  • Loading branch information...
commit a2981f048e9a5dca7e7731a306423ab0bd767a32 1 parent 4f52d26
@datakurre datakurre authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 application/surfaces/view.js
View
6 application/surfaces/view.js
@@ -426,8 +426,10 @@ SC.View = SC.LeafSurface.extend({
psurface = SC.psurfaces[this.__id__];
if (!psurface) return;
- // Must be a mouse event.
- if (type !== 'mousedown' && type !== 'mousemove' && type !== 'mouseup') return;
+ // Must be a mouse event or a touch event.
+ if (type !== 'mousedown' && type !== 'mousemove' && type !== 'mouseup'
+ && type !== 'touchstart' && type !== 'touchmove' && type !== 'touchend'
+ && type !== 'touchcancel') return;
evt.layer = layer;
Please sign in to comment.
Something went wrong with that request. Please try again.