diff --git a/waypoints.js b/waypoints.js index 61734a36..a699b37c 100644 --- a/waypoints.js +++ b/waypoints.js @@ -416,7 +416,7 @@ Support: else if (typeof o.options.offset === "string") { var amount = parseFloat(o.options.offset); adjustment = o.options.offset.indexOf("%") ? - Math.ceil(contextHeight * (amount / 100)) : amount; + -Math.ceil(o.element.height() * (amount / 100)) : amount; } /*