mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 04:53:19 +02:00
handle a touchMove error
handle a touchMove error handle a touchMove error
This commit is contained in:
@@ -548,16 +548,21 @@ module.exports = function(options) {
|
||||
])
|
||||
})
|
||||
.on('input.touchMove', function(channel, data) {
|
||||
push.send([
|
||||
channel
|
||||
, wireutil.envelope(new wire.TouchMoveMessage(
|
||||
data.seq
|
||||
, data.contact
|
||||
, data.x
|
||||
, data.y
|
||||
, data.pressure
|
||||
))
|
||||
])
|
||||
try {
|
||||
push.send([
|
||||
channel
|
||||
, wireutil.envelope(new wire.TouchMoveMessage(
|
||||
data.seq
|
||||
, data.contact
|
||||
, data.x
|
||||
, data.y
|
||||
, data.pressure
|
||||
))
|
||||
])
|
||||
}
|
||||
catch(err) {
|
||||
log.error('input.touchMove had an error', err.stack)
|
||||
}
|
||||
})
|
||||
.on('input.touchUp', function(channel, data) {
|
||||
push.send([
|
||||
|
||||
Reference in New Issue
Block a user