From e2b5ca9344febebe1589f5a3e21eb504a04b6840 Mon Sep 17 00:00:00 2001 From: Simo Kinnunen Date: Tue, 16 Sep 2014 17:57:37 +0900 Subject: [PATCH] Touchmove had both X and Y mapped to maximum X. --- lib/units/device/plugins/touch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/units/device/plugins/touch.js b/lib/units/device/plugins/touch.js index dc36b05b..13e18f28 100644 --- a/lib/units/device/plugins/touch.js +++ b/lib/units/device/plugins/touch.js @@ -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) )) }