Skip to content

Commit

Permalink
long press now always ends at 5 minute marks
Browse files Browse the repository at this point in the history
  • Loading branch information
dakhnod committed Nov 21, 2021
1 parent fefb9ec commit e15f256
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/timer/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,7 @@ return {
self.display_alarm_select(response)
} else if (type === 'top_hold') {
// self.time_select_forward(response)
self.alarm_time -= (self.alarm_time % (5 * 60 * 1000))
self.select_direction = 'backward'
self.start_forward_timer()
} else if (type === 'bottom_press') {
Expand All @@ -415,6 +416,7 @@ return {
self.display_alarm_select(response)
} else if (type === 'bottom_hold') {
// self.time_select_forward(response)
self.alarm_time += (5 * 60 * 1000) - (self.alarm_time % (5 * 60 * 1000))
self.select_direction = 'forward'
self.start_forward_timer()
} else if (type === 'timer_expired') {
Expand Down

0 comments on commit e15f256

Please sign in to comment.