Touchmove had both X and Y mapped to maximum X.

This commit is contained in:
Simo Kinnunen
2014-09-16 17:57:37 +09:00
parent 08f5c899b4
commit e2b5ca9344

View File

@@ -109,7 +109,7 @@ module.exports = syrup.serial()
'm %s %s %s %s\n'
, point.contact
, Math.floor(point.x * socket.maxX)
, Math.floor(point.y * socket.maxX)
, Math.floor(point.y * socket.maxY)
, Math.floor((point.pressure || 0.5) * socket.maxPressure)
))
}