Skip to content

Commit

Permalink
Add pointerEvent.originalPointer property
Browse files Browse the repository at this point in the history
  • Loading branch information
taye committed Sep 10, 2015
1 parent 195cfe9 commit b3e4ffb
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions interact.js
Original file line number Diff line number Diff line change
Expand Up @@ -2782,11 +2782,12 @@
pointerEvent.stopImmediatePropagation = InteractEvent.prototype.stopImmediatePropagation;
pointerEvent.interaction = this;

pointerEvent.timeStamp = new Date().getTime();
pointerEvent.originalEvent = event;
pointerEvent.type = eventType;
pointerEvent.pointerId = getPointerId(pointer);
pointerEvent.pointerType = this.mouse? 'mouse' : !supportsPointerEvent? 'touch'
pointerEvent.timeStamp = new Date().getTime();
pointerEvent.originalEvent = event;
pointerEvent.originalPointer = pointer;
pointerEvent.type = eventType;
pointerEvent.pointerId = getPointerId(pointer);
pointerEvent.pointerType = this.mouse? 'mouse' : !supportsPointerEvent? 'touch'
: isString(pointer.pointerType)
? pointer.pointerType
: [,,'touch', 'pen', 'mouse'][pointer.pointerType];
Expand Down

0 comments on commit b3e4ffb

Please sign in to comment.