dblclick doesn't work for mobile? I don't know how to fix this and also don't know why no work?
<div *ngFor="let singleObj of test;"
(dblclick)="countDownTimer(set)">
</div>
countDownTimer(set, index) {
this.showNote = true;
if (this.countingWhile) return;
this.countDown = this.trainingModalFromDialyGoal
.getCounter(this.tick)
.subscribe(() => {
if (set.reps > 1) {
this.countingWhile = true;
}
set.reps--
if (set.reps < 1) {
set.reps = 0;
set.completed = true;
this.playAudio();
this.countingWhile = false;
this.countDown.unsubscribe();
}
console.log('setssss', set.reps)
}
);
}
I don't know why no work ? What I need to change? Can anyone help me with code please?