Balanced out position slider a little more so it only moves by 240px instead of the full 250 (cosmetic only)
authorDan
Mon, 01 Sep 2008 16:48:47 -0400
changeset 42 774751e7faed
parent 41 6e0beb10566d
child 43 2634d550a97b
Balanced out position slider a little more so it only moves by 240px instead of the full 250 (cosmetic only)
scripts/position.js
--- a/scripts/position.js	Mon Sep 01 16:48:09 2008 -0400
+++ b/scripts/position.js	Mon Sep 01 16:48:47 2008 -0400
@@ -43,7 +43,7 @@
   pos_in_drag = false;
   var inner = document.getElementById('playhead-filler');
   var base = document.getElementById('playhead');
-  var multiplier = $(base).Width();
+  var multiplier = $(base).Width() - 13;
   var pos = x - $(inner).Left() + 8;
   pos = 100 * ( pos / multiplier );
   set_playback_position(pos);
@@ -66,7 +66,7 @@
   
   // pos needs to be 1-100
   var base = document.getElementById('playhead');
-  var multiplier = $(base).Width();
+  var multiplier = $(base).Width() - 13;
   pos = ( pos / 100 ) * multiplier;
   var left = pos + $(base).Left();
   posslide_handle_drag(left, 0, true);