Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Yinxi.Zheng committed Dec 14, 2015
1 parent 76e6ddb commit b6c2046
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/context.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@
}

contextModifier = axis.contextScroll - axis.contextOffset
waypoint.triggerPoint = elementOffset + contextModifier - adjustment
waypoint.triggerPoint = Math.floor(elementOffset + contextModifier - adjustment)
wasBeforeScroll = oldTriggerPoint < axis.oldScroll
nowAfterScroll = waypoint.triggerPoint >= axis.oldScroll
triggeredBackward = wasBeforeScroll && nowAfterScroll
Expand Down

0 comments on commit b6c2046

Please sign in to comment.