From 151fd2d396fa2e100477b48ed8d6945ae9718071 Mon Sep 17 00:00:00 2001 From: Andre Santos Date: Wed, 22 Jun 2016 21:08:47 +0100 Subject: [PATCH] Removed offset from height 7.5 has been removed from the maths equation for the knob initial position. --- resources/assets/scripts/app/directives/player.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/assets/scripts/app/directives/player.coffee b/resources/assets/scripts/app/directives/player.coffee index 0e7387c8..4efd31ea 100644 --- a/resources/assets/scripts/app/directives/player.coffee +++ b/resources/assets/scripts/app/directives/player.coffee @@ -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) ->