src/js/widgets/sliderWidget.js
branchpopcorn-port
changeset 740 3b60f3beb521
parent 739 d28b9acfc445
child 820 7968346b9689
equal deleted inserted replaced
739:d28b9acfc445 740:3b60f3beb521
    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 :