This commit is contained in:
j 2017-11-13 15:53:19 +01:00
parent afea7ed9a9
commit c02a08c8d9

View file

@ -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));
}