Removed offset from height

7.5 has been removed from the maths equation for the knob initial position.
This commit is contained in:
Andre Santos 2016-06-22 21:08:47 +01:00 committed by GitHub
parent 9f01a0cbc5
commit 151fd2d396

View file

@ -61,7 +61,7 @@ module.exports = angular.module('ponyfm').directive 'pfmPlayer', () ->
$bar = $element.find('.volume-slider .bar')
player.readyDef.done ->
initialY = (180 - (180 * (player.volume / 100))) - 7.5
initialY = (180 - (180 * (player.volume / 100)))
$knob.css {top: initialY}
moveVolumeSlider = (absoluteY) ->