void drag(int mx){    
    	 //Only update position if it's in bounds of the slider 
    	 int fixAnchor = 0;
    	 if (this.dragging == true && mx >= this.tickPositions.get(0) && mx < this.tickPositions.get(this.numLabels-1)){ 
    		 float next = this.tickPositions.get(this.nextView);
    		 float current = this.tickPositions.get(this.currentView);
    		 if (mx<=current && this.currentView >0){ //Passed current view, moving backward in time
    			 this.nextView = this.currentView;
    			 this.currentView--;      			 
    			 this.interpAmount = 1;
    		 }else if (mx>=next && this.nextView<(this.numLabels-1)){ //Passed next view, moving forward in time
    			 this.currentView = this.nextView;
    			 this.nextView++;    			
    			 this.interpAmount = 0;
    		 }else{
    			 this.interpAmount = Math.abs(mx -current)/(next-current);
    		 }
    		 this.dragTickX = mx; 
    	 }else if (mx <= this.tickPositions.get(0)){
    		 fixAnchor = 1;
    	 }else if (mx > this.tickPositions.get(this.numLabels-1)){
    		 fixAnchor = 1;
    	 }
    	 
    	 if (fixAnchor==1){
    		 this.drawingView = this.nextView;
    	 }else{
    		 this.drawingView = this.currentView;
    	 }
     }