Skip to content

Commit

Permalink
making Fx.Scroll's set method respect the offsets in the options
Browse files Browse the repository at this point in the history
  • Loading branch information
anutron committed Apr 18, 2010
1 parent 30afc39 commit b491c3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Fx/Fx.Scroll.js
Expand Up @@ -52,7 +52,7 @@ Fx.Scroll = new Class({
set: function(){
var now = Array.flatten(arguments);
if (Browser.Engine.gecko) now = [Math.round(now[0]), Math.round(now[1])];
this.element.scrollTo(now[0], now[1]);
this.element.scrollTo(now[0] + this.options.offset.x, now[1] + this.options.offset.y);
},

compute: function(from, to, delta){
Expand Down

0 comments on commit b491c3f

Please sign in to comment.