react-perimeter icon indicating copy to clipboard operation
react-perimeter copied to clipboard

Track horizontal scroll offset

Open aweary opened this issue 8 years ago • 1 comments

We already track the vertical offset (pageYOffset) so the perimeter is calculated correctly on scroll (and if the component mounts on a page that is already scrolled).

Horizontal scroll is less common, but still it's good idea to support it nonetheless.

aweary avatar Mar 17 '17 14:03 aweary

Seems like pageYOffset is not finished, It looks like you need to recalculate initialOffset here

istarkov avatar Mar 17 '17 16:03 istarkov