this time got it right. popcorn-port
authorhamidouk
Mon, 23 Jan 2012 11:19:47 +0100
branchpopcorn-port
changeset 692 4eca4ee558a3
parent 691 2297203d7fa3
child 693 6328901da7bf
this time got it right.
src/js/widgets/sliceWidget.js
--- a/src/js/widgets/sliceWidget.js	Mon Jan 23 11:04:57 2012 +0100
+++ b/src/js/widgets/sliceWidget.js	Mon Jan 23 11:19:47 2012 +0100
@@ -71,9 +71,9 @@
   var currentX = this.leftHandle.position()["left"];
   var rightHandleX = Math.floor(this.rightHandle.position()["left"]);
   
-  if (Math.floor(ui.position.left) >= rightHandleX - 6) {
+  if (Math.floor(ui.position.left) >= rightHandleX - 7) {
     /* prevent the handle from moving past the right handle */
-    ui.position.left = rightHandleX - 6;
+    ui.position.left = rightHandleX - 7;
   }
 
   this.zoneWidth = rightHandleX - Math.floor(ui.position.left) - 7;