equal
deleted
inserted
replaced
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 |