We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 76e6ddb + b6c2046 commit cc044d9Copy full SHA for cc044d9
src/context.js
@@ -234,7 +234,7 @@
234
}
235
236
contextModifier = axis.contextScroll - axis.contextOffset
237
- waypoint.triggerPoint = elementOffset + contextModifier - adjustment
+ waypoint.triggerPoint = Math.floor(elementOffset + contextModifier - adjustment)
238
wasBeforeScroll = oldTriggerPoint < axis.oldScroll
239
nowAfterScroll = waypoint.triggerPoint >= axis.oldScroll
240
triggeredBackward = wasBeforeScroll && nowAfterScroll
0 commit comments