equal
deleted
inserted
replaced
72 var rightEdgePos = pixels + 1 * correction; |
72 var rightEdgePos = pixels + 1 * correction; |
73 |
73 |
74 if (rightEdgePos >= divWidth) |
74 if (rightEdgePos >= divWidth) |
75 newPos = divWidth - 1 * correction - 1; |
75 newPos = divWidth - 1 * correction - 1; |
76 |
76 |
77 console.log(newPos); |
77 this.sliderForeground.css("width", pixels + "px"); |
78 this.sliderForeground.css("width", pixels + "px"); |
78 this.positionMarker.css("left", newPos + "px"); |
79 this.positionMarker.css("left", newPos + "px"); |
|
80 |
79 |
81 }; |
80 }; |
82 |
81 |
83 IriSP.SliderWidget.prototype.backgroundClickHandler = function(event) { |
82 IriSP.SliderWidget.prototype.backgroundClickHandler = function(event) { |
84 /* this piece of code is a little bit convoluted - here's how it works : |
83 /* this piece of code is a little bit convoluted - here's how it works : |