Make sure touch events arrive in correct order.

This commit is contained in:
Simo Kinnunen
2014-04-03 17:13:17 +09:00
parent ceeda2b990
commit c33f0eab09
6 changed files with 68 additions and 22 deletions

View File

@@ -40,9 +40,10 @@ module.exports = function ControlServiceFactory(
}
function touchSender(type) {
return function(x, y) {
return function(seq, x, y) {
socket.emit(type, channel, {
x: x
seq: seq
, x: x
, y: y
})
}