Skip to content

Commit 894cef4

Browse files
authored
Merge pull request #80 from davidsonsns/master
scrollTo to scrollTop
2 parents 4bb3f24 + a540c9e commit 894cef4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

enjoyhint.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ var EnjoyHint = function (_options) {
133133
that.clear();
134134
}, 250);
135135

136-
$(document.body).scrollTo(step_data.selector, step_data.scrollAnimationSpeed || 250, {offset: -100});
136+
$(document.body).scrollTop(step_data.selector, step_data.scrollAnimationSpeed || 250, {offset: -100});
137137

138138
setTimeout(function () {
139139

src/enjoyhint.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ var EnjoyHint = function (_options) {
133133
that.clear();
134134
}, 250);
135135

136-
$(document.body).scrollTo(step_data.selector, step_data.scrollAnimationSpeed || 250, {offset: -100});
136+
$(document.body).scrollTop(step_data.selector, step_data.scrollAnimationSpeed || 250, {offset: -100});
137137

138138
setTimeout(function () {
139139

0 commit comments

Comments
 (0)