typos
This commit is contained in:
parent
afea7ed9a9
commit
c02a08c8d9
1 changed files with 6 additions and 6 deletions
|
@ -92,10 +92,10 @@
|
||||||
singleclicks and doubleclicks, since it will not fire for
|
singleclicks and doubleclicks, since it will not fire for
|
||||||
doubleclicks)
|
doubleclicks)
|
||||||
* <*> Original event properties
|
* <*> Original event properties
|
||||||
touchend <!> tochend
|
touchend <!> touchend
|
||||||
normalized version of touchend event
|
normalized version of touchend event
|
||||||
* <*> Original event properties
|
* <*> Original event properties
|
||||||
touchmove <!> tochmove
|
touchmove <!> touchmove
|
||||||
normalized version of touchmove event
|
normalized version of touchmove event
|
||||||
* <*> Original event properties
|
* <*> Original event properties
|
||||||
touchstart <!> touchstart
|
touchstart <!> touchstart
|
||||||
|
@ -194,7 +194,7 @@
|
||||||
|
|
||||||
function getTouchData(e) {
|
function getTouchData(e) {
|
||||||
var data = {};
|
var data = {};
|
||||||
if (e.changedTouches && e.changedTouches.length) {
|
if (e && e.changedTouches && e.changedTouches.length) {
|
||||||
data.clientX = e.changedTouches[0].clientX;
|
data.clientX = e.changedTouches[0].clientX;
|
||||||
data.clientY = e.changedTouches[0].clientY;
|
data.clientY = e.changedTouches[0].clientY;
|
||||||
} else {
|
} else {
|
||||||
|
@ -365,19 +365,19 @@
|
||||||
|
|
||||||
function onTouchend(e) {
|
function onTouchend(e) {
|
||||||
//var data = getTouchData(e.originalEvent);
|
//var data = getTouchData(e.originalEvent);
|
||||||
var data = getTouchData(e;
|
var data = getTouchData(e);
|
||||||
that.triggerEvent('touchend', Ox.extend(e, data));
|
that.triggerEvent('touchend', Ox.extend(e, data));
|
||||||
}
|
}
|
||||||
|
|
||||||
function onTouchmove(e) {
|
function onTouchmove(e) {
|
||||||
//var data = getTouchData(e.originalEvent);
|
//var data = getTouchData(e.originalEvent);
|
||||||
var data = getTouchData(e;
|
var data = getTouchData(e);
|
||||||
that.triggerEvent('touchmove', Ox.extend(e, data));
|
that.triggerEvent('touchmove', Ox.extend(e, data));
|
||||||
}
|
}
|
||||||
|
|
||||||
function onTouchstart(e) {
|
function onTouchstart(e) {
|
||||||
//var data = getTouchData(e.originalEvent);
|
//var data = getTouchData(e.originalEvent);
|
||||||
var data = getTouchData(e;
|
var data = getTouchData(e);
|
||||||
that.triggerEvent('touchstart', Ox.extend(e, data));
|
that.triggerEvent('touchstart', Ox.extend(e, data));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue