Skip to content

Commit

Permalink
fix touchpad on end holdMove check and use correct var
Browse files Browse the repository at this point in the history
  • Loading branch information
Nerwyn committed Dec 9, 2024
1 parent ca4dc76 commit 3d06c47
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dist/universal-remote-card.min.js

Large diffs are not rendered by default.

7 changes: 3 additions & 4 deletions src/classes/remote-touchpad.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,12 +137,11 @@ export class RemoteTouchpad extends BaseRemoteElement {
e.preventDefault();
this.endAction();
if ('targetTouches' in e && e.targetTouches?.length) {
this.hold = true;
this.holdMove = true;
}
} else if (
!this.hold ||
!('targetTouches' in e) ||
!e.targetTouches.length
!this.holdMove &&
(!('targetTouches' in e) || !e.targetTouches.length)
) {
this.onClick(e);
}
Expand Down

0 comments on commit 3d06c47

Please sign in to comment.