mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-19 08:33:24 +02:00
Gesturestart had an off by one error in the control sequence.
This commit is contained in:
@@ -9,7 +9,9 @@ function SeqQueue(size, maxWaiting) {
|
||||
|
||||
SeqQueue.prototype.start = function(seq) {
|
||||
this.locked = false
|
||||
this.lo = seq
|
||||
// The loop in maybeConsume() will make sure that the value wraps correctly
|
||||
// if necessary.
|
||||
this.lo = seq + 1
|
||||
this.maybeConsume()
|
||||
}
|
||||
|
||||
@@ -35,7 +37,7 @@ SeqQueue.prototype.maybeConsume = function() {
|
||||
|
||||
while (this.waiting) {
|
||||
// Did we reach the end of the loop? If so, start from the beginning.
|
||||
if (this.lo === this.size) {
|
||||
if (this.lo >= this.size) {
|
||||
this.lo = 0
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user