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) )) }