Here, where I define the event in my opinion:
events : { "tap #exerciseProgressBarContainer" : 'progressBarClick' },
And here is the action:
progressBarClick : function() { // start? if(this.curWorkoutExercise.isTimed() && !this.curExerciseStartTime) { HTMLHelper.endGlow(this.$('#exerciseProgressBarContainer .progressBar.overlay')); this.startExerciseProgressTimer(); } // done? else { this.stopExerciseProgressTimer(); // save the log this.addCurExerciseLog(); this.startBreak(); this.nextAction(); } },
Basically, the first time the user starts the run timer, and after it starts, another tap ends it. What happens on my iPhone and my Android is a tap event that fires twice , simultaneously starting and stopping the progress bar. Any ideas why this is happening and how to fix it? Note. I already tried replacing tap with vclick .
Thanks a lot!
source share