aweary/react-perimeter

Track horizontal scroll offset

Open

#2 opened on Mar 17, 2017

View on GitHub
 (1 comment) (0 reactions) (0 assignees)JavaScript (27 forks)github user discovery
enhancementgood first bughelp wanted

Repository metrics

Stars
 (1,042 stars)
PR merge metrics
 (PR metrics pending)

Description

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.

Contributor guide