Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
alexindigo committed Dec 16, 2010
2 parents 29be820 + 6706dab commit 56b0744
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scrollbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ Control.ScrollBar = Class.create({
scrollBy: function(y){
if(!this.enabled)
return false;
this.slider.setValueBy(y / this.getCurrentMaximumDelta());
this.slider.setValueBy(y / (this.getCurrentMaximumDelta() == 0 ? 1 : this.getCurrentMaximumDelta()) );
}
});
Object.extend(Control.ScrollBar,
Expand Down

0 comments on commit 56b0744

Please sign in to comment.