You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -136,10 +136,10 @@ var options = {
136
136
easing:'ease-in',
137
137
offset:-60,
138
138
cancelable:true,
139
-
onStart:function() {
139
+
onStart:function(element) {
140
140
// scrolling started
141
141
},
142
-
onDone:function() {
142
+
onDone:function(element) {
143
143
// scrolling is done
144
144
},
145
145
onCancel:function() {
@@ -189,17 +189,17 @@ Indicates if user can cancel the scroll or not.
189
189
*Default:*`true`
190
190
191
191
#### onStart
192
-
A callback function that should be called when scrolling has started.
192
+
A callback function that should be called when scrolling has started. Receives the target element as a parameter.
193
193
194
194
*Default:*`noop`
195
195
196
196
#### onDone
197
-
A callback function that should be called when scrolling has ended.
197
+
A callback function that should be called when scrolling has ended. Receives the target element as a parameter.
198
198
199
199
*Default:*`noop`
200
200
201
201
#### onCancel
202
-
A callback function that should be called when scrolling has been aborted by the user (user scrolled, clicked etc.).
202
+
A callback function that should be called when scrolling has been aborted by the user (user scrolled, clicked etc.). Receives the abort event and the target element as parameters.
0 commit comments