Skip to content
Browse files

Remove the extra offset in the Fx.SmoothScroll onComplete event - thi…

…s is already calculated in the Fx.Scroll calculateScroll method
  • Loading branch information...
1 parent e5bc184 commit 8eccc02ed4b90f38a6d1e4e6c2a95adebc1f3c04 @arian arian committed Dec 22, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 Source/Fx/Fx.SmoothScroll.js
View
4 Source/Fx/Fx.SmoothScroll.js
@@ -26,7 +26,7 @@ provides: [Fx.SmoothScroll]
Extends: Fx.Scroll,
options: {
- axes: ['x','y']
+ axes: ['x', 'y']
},
initialize: function(options, context){
@@ -46,7 +46,7 @@ provides: [Fx.SmoothScroll]
this.addEvent('complete', function(){
win.location.hash = this.anchor;
- this.element.scrollTo(this.to[0] + this.options.offset.x, this.to[1] + this.options.offset.y);
+ this.element.scrollTo(this.to[0], this.to[1]);
}, true);
},

0 comments on commit 8eccc02

Please sign in to comment.
Something went wrong with that request. Please try again.