stutrek/scrollmonitor

Percentage offset values

Opened this issue · 2 comments

Are there plans for implementing the offset values with pixel or with percentages?
This allows a more similar behavior on different screen sizes.

I have no plans to, but a PR implementing it would be welcome.

This is a must have feature. Pixel offset is quite useless, since you don't know how tall is the window. Otherwise, at least, you should let pass a function instead of an object, so one can try to manually calculate the value each time. Still not an optimal solution. Just passing something like '.25' would be far more useful.