From b3e4ffb4a44666249bad5e3762b031a40a67b7e1 Mon Sep 17 00:00:00 2001 From: Taye Adeyemi Date: Thu, 10 Sep 2015 14:07:51 +0100 Subject: [PATCH] Add pointerEvent.originalPointer property --- interact.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/interact.js b/interact.js index 29adae5b7..bdba47855 100644 --- a/interact.js +++ b/interact.js @@ -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];