diff --git a/source/UI/js/Core/Element.js b/source/UI/js/Core/Element.js index dab07178..5e1ca456 100644 --- a/source/UI/js/Core/Element.js +++ b/source/UI/js/Core/Element.js @@ -92,10 +92,10 @@ singleclicks and doubleclicks, since it will not fire for doubleclicks) * <*> Original event properties - touchend tochend + touchend touchend normalized version of touchend event * <*> Original event properties - touchmove tochmove + touchmove touchmove normalized version of touchmove event * <*> Original event properties touchstart touchstart @@ -194,7 +194,7 @@ function getTouchData(e) { var data = {}; - if (e.changedTouches && e.changedTouches.length) { + if (e && e.changedTouches && e.changedTouches.length) { data.clientX = e.changedTouches[0].clientX; data.clientY = e.changedTouches[0].clientY; } else { @@ -365,19 +365,19 @@ function onTouchend(e) { //var data = getTouchData(e.originalEvent); - var data = getTouchData(e; + var data = getTouchData(e); that.triggerEvent('touchend', Ox.extend(e, data)); } function onTouchmove(e) { //var data = getTouchData(e.originalEvent); - var data = getTouchData(e; + var data = getTouchData(e); that.triggerEvent('touchmove', Ox.extend(e, data)); } function onTouchstart(e) { //var data = getTouchData(e.originalEvent); - var data = getTouchData(e; + var data = getTouchData(e); that.triggerEvent('touchstart', Ox.extend(e, data)); }