mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 16:13:24 +02:00
Touchmove had both X and Y mapped to maximum X.
This commit is contained in:
@@ -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)
|
||||
))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user