Skip to content

Commit a5a905f

Browse files
committed
multi-touch end debug logging
1 parent 3d06c47 commit a5a905f

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

dist/universal-remote-card.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/classes/remote-touchpad.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,13 +136,17 @@ export class RemoteTouchpad extends BaseRemoteElement {
136136
e.stopImmediatePropagation();
137137
e.preventDefault();
138138
this.endAction();
139+
console.log('Ending action after hold/move');
139140
if ('targetTouches' in e && e.targetTouches?.length) {
140141
this.holdMove = true;
142+
console.log('Finger still down, setting holdMove to true');
141143
}
142144
} else if (
143145
!this.holdMove &&
144146
(!('targetTouches' in e) || !e.targetTouches.length)
145147
) {
148+
console.log(`holdMove: ${this.holdMove}`);
149+
console.log(`Touches: ${(e as TouchEvent).targetTouches}`);
146150
this.onClick(e);
147151
}
148152
this.toggleRipple();

0 commit comments

Comments
 (0)