While using it in my application, I noticed that the containerOffset doesn't take the scrollbar size into account when the scroll container is just the <html> element. Since the scrollbar size is subtracted for all other scroll containers I figured this is a bug in the implementation (correct me if I'm wrong 😁).
Here are two screenshots that illustrate the problem.
Hi @everweij 👋
thanks for this awesome library ❤️
While using it in my application, I noticed that the
containerOffset
doesn't take the scrollbar size into account when the scroll container is just the<html>
element. Since the scrollbar size is subtracted for all other scroll containers I figured this is a bug in the implementation (correct me if I'm wrong 😁).Here are two screenshots that illustrate the problem.
Without fix and
containerOffset: 10
:With fix and
containerOffset: 10
: