2017-11-15 14:17:57 +01:00
|
|
|
data.event.preventDefault();
|
2017-11-15 14:39:46 +01:00
|
|
|
|
|
|
|
var touch = data[Object.keys(data)[0]];
|
|
|
|
|
|
|
|
console.log('start' : touch);
|
|
|
|
|
|
|
|
GameLib.Event.Emit(
|
|
|
|
GameLib.Event.MOUSE_MOVE,
|
|
|
|
{
|
|
|
|
event : {
|
|
|
|
offsetX : touch.pageX,
|
|
|
|
offsetY : touch.pageY,
|
|
|
|
target : data.event.target
|
|
|
|
}
|
|
|
|
}
|
|
|
|
)
|
|
|
|
|
|
|
|
GameLib.Event.Emit(GameLib.Event.MOUSE_DOWN);
|
|
|
|
|
2017-11-15 14:16:51 +01:00
|
|
|
//@ sourceURL=touchStart.js
|