Skip to content

Commit

Permalink
do not set holdTimer to undefined on mouse action
Browse files Browse the repository at this point in the history
  • Loading branch information
Nerwyn committed Dec 9, 2024
1 parent aabbecb commit 1eef549
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion dist/universal-remote-card.min.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion src/classes/remote-mousepad.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ export class RemoteMousepad extends RemoteTouchpad {
) {
if (this.holdTimer) {
clearTimeout(this.holdTimer);
this.holdTimer = undefined;
this.holdMove = true;
this.sendAction(`${this.getMultiPrefix()}mouse_action`);
}
Expand Down
1 change: 0 additions & 1 deletion src/classes/remote-touchpad.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,6 @@ export class RemoteTouchpad extends BaseRemoteElement {
) {
if (this.holdTimer) {
clearTimeout(this.holdTimer);
this.holdTimer = undefined;
this.holdMove = true;
this.sendAction(`${this.getMultiPrefix()}mouse_action`);
}
Expand Down

0 comments on commit 1eef549

Please sign in to comment.