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
/* The waypoint is triggered at the top of each list item representing a dial section. When triggering in the down direction we want to use the dial section the waypoint is attached to. But in the up direction we want to use the previous dial section. */
/* The waypoint is triggered at the top of each list item representing a dial section. When triggering in the down direction we want to use the dial section the waypoint is attached to. But in the up direction we want to use the previous dial section. */
231
+
if (direction === "up") {
232
+
$active = $active.prev();
233
+
}
226
234
227
-
/* If we triggered in the up direction and the result from 'prev' came back with an empty set of elements, it means we were on the first element in the list, and we should just use the original element. */
228
-
if (!$active.length) {
229
-
$active = $(this);
230
-
}
235
+
/* If we triggered in the up direction and the result from 'prev' came back with an empty set of elements, it means we were on the first element in the list, and we should just use the original element. */
236
+
if (!$active.length) {
237
+
$active = $(this);
238
+
}
231
239
232
-
/* The property the dial controls is a data attribute on the ul. */
Copy file name to clipboardExpand all lines: examples/scroll-analytics/index.html
+27-20
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,7 @@
7
7
<metaname="description" content="An example of how to use the jQuery Waypoints plugin to track ad views more accurately and respond to engaged users when they reach the end of content">
0 commit comments