From afea7ed9a92613ecae8764eac511dfebe4a1ebe3 Mon Sep 17 00:00:00 2001 From: j Date: Mon, 13 Nov 2017 15:16:25 +0100 Subject: [PATCH] followup tp 0a9c30d - .addEventListener does not have originalEvent --- source/UI/js/Core/Element.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/source/UI/js/Core/Element.js b/source/UI/js/Core/Element.js index 9c75bbc1..dab07178 100644 --- a/source/UI/js/Core/Element.js +++ b/source/UI/js/Core/Element.js @@ -364,17 +364,20 @@ } function onTouchend(e) { - var data = getTouchData(e.originalEvent); + //var data = getTouchData(e.originalEvent); + var data = getTouchData(e; that.triggerEvent('touchend', Ox.extend(e, data)); } function onTouchmove(e) { - var data = getTouchData(e.originalEvent); + //var data = getTouchData(e.originalEvent); + var data = getTouchData(e; that.triggerEvent('touchmove', Ox.extend(e, data)); } function onTouchstart(e) { - var data = getTouchData(e.originalEvent); + //var data = getTouchData(e.originalEvent); + var data = getTouchData(e; that.triggerEvent('touchstart', Ox.extend(e, data)); }