Skip to content

Commit

Permalink
reset moveOnHoldIntervalCounter after moveOnHoldDelay, see #1531
Browse files Browse the repository at this point in the history
  • Loading branch information
jessegreenberg committed Feb 1, 2023
1 parent e11197c commit c558ad5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions js/listeners/KeyboardDragListener.ts
Original file line number Diff line number Diff line change
Expand Up @@ -669,6 +669,7 @@ class KeyboardDragListener extends EnabledComponent implements TInputListener {
if ( this.moveOnHoldDelayCounter >= this._moveOnHoldDelay && !this.delayComplete ) {
movable = true;
this.delayComplete = true;
this.moveOnHoldIntervalCounter = 0;
}

// Initial delay is complete, now we will move every moveOnHoldInterval
Expand Down

0 comments on commit c558ad5

Please sign in to comment.