Skip to content
Permalink
Browse files

feat: pass additional parameters to offset callback (#135)

* Add parameter to offset callback function

* build vue-scrollto.js
  • Loading branch information...
lukasbesch authored and rigor789 committed Sep 10, 2019
1 parent d2a0e05 commit e8622136634c4ea767bdbeb14ce4036999293a47
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/scrollTo.js
  2. +1 −1 vue-scrollto.js
@@ -166,7 +166,7 @@ export const scroller = () => {
var cumulativeOffsetElement = _.cumulativeOffset(element);

if (typeof offset === "function") {
offset = offset();
offset = offset(element, container);
}

initialY = scrollTop(container);
@@ -378,7 +378,7 @@
var cumulativeOffsetElement = _.cumulativeOffset(element);

if (typeof offset === "function") {
offset = offset();
offset = offset(element, container);
}

initialY = scrollTop(container);

0 comments on commit e862213

Please sign in to comment.
You can’t perform that action at this time.