src/js/widgets/sliceWidget.js
branchpopcorn-port
changeset 692 4eca4ee558a3
parent 691 2297203d7fa3
child 770 14d56cb5d75d
equal deleted inserted replaced
691:2297203d7fa3 692:4eca4ee558a3
    69   */
    69   */
    70   
    70   
    71   var currentX = this.leftHandle.position()["left"];
    71   var currentX = this.leftHandle.position()["left"];
    72   var rightHandleX = Math.floor(this.rightHandle.position()["left"]);
    72   var rightHandleX = Math.floor(this.rightHandle.position()["left"]);
    73   
    73   
    74   if (Math.floor(ui.position.left) >= rightHandleX - 6) {
    74   if (Math.floor(ui.position.left) >= rightHandleX - 7) {
    75     /* prevent the handle from moving past the right handle */
    75     /* prevent the handle from moving past the right handle */
    76     ui.position.left = rightHandleX - 6;
    76     ui.position.left = rightHandleX - 7;
    77   }
    77   }
    78 
    78 
    79   this.zoneWidth = rightHandleX - Math.floor(ui.position.left) - 7;  
    79   this.zoneWidth = rightHandleX - Math.floor(ui.position.left) - 7;  
    80   this.zoneLeft = Math.floor(ui.position.left) + 8;
    80   this.zoneLeft = Math.floor(ui.position.left) + 8;
    81   
    81