mirror of
https://github.com/openstf/stf
synced 2025-10-03 17:59:28 +02:00
handle a touchMove error
handle a touchMove error handle a touchMove error
This commit is contained in:
parent
d1f785efdd
commit
5a3c872739
1 changed files with 15 additions and 10 deletions
|
@ -548,16 +548,21 @@ module.exports = function(options) {
|
||||||
])
|
])
|
||||||
})
|
})
|
||||||
.on('input.touchMove', function(channel, data) {
|
.on('input.touchMove', function(channel, data) {
|
||||||
push.send([
|
try {
|
||||||
channel
|
push.send([
|
||||||
, wireutil.envelope(new wire.TouchMoveMessage(
|
channel
|
||||||
data.seq
|
, wireutil.envelope(new wire.TouchMoveMessage(
|
||||||
, data.contact
|
data.seq
|
||||||
, data.x
|
, data.contact
|
||||||
, data.y
|
, data.x
|
||||||
, data.pressure
|
, data.y
|
||||||
))
|
, data.pressure
|
||||||
])
|
))
|
||||||
|
])
|
||||||
|
}
|
||||||
|
catch(err) {
|
||||||
|
log.error('input.touchMove had an error', err.stack)
|
||||||
|
}
|
||||||
})
|
})
|
||||||
.on('input.touchUp', function(channel, data) {
|
.on('input.touchUp', function(channel, data) {
|
||||||
push.send([
|
push.send([
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue