Skip to content

Commit

Permalink
Only pause helper when moving the finger
Browse files Browse the repository at this point in the history
  • Loading branch information
xzzz9097 committed Jun 23, 2017
1 parent 97f959d commit f61368d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Muse/WindowController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -132,16 +132,16 @@ class WindowController: NSWindowController, NSWindowDelegate, SliderDelegate {

// Handle single touch events
helper.scrub(to: songProgressSlider.doubleValue)

// Pause player
// so it doesn't mess with sliding
helper.pause()
}

/**
Handles 'touchesMoved' events from the slider
*/
func didTouchesMoved() {
// Pause player
// so it doesn't mess with sliding
if helper.isPlaying { helper.pause() }

// Set new position to the player
helper.scrub(to: songProgressSlider.doubleValue, touching: true)
}
Expand Down

0 comments on commit f61368d

Please sign in to comment.