You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Could be a feature, where you can set a height of an area where the trigger for visible happens instead of being the whole viewport or whole containement element.
The text was updated successfully, but these errors were encountered:
Yeah, I also came across with this limitation. It would be very useful if React Visibility Sensor was able to fire some callback given some vertical or horizontal level of the parent child or the whole <body> element. Something like:
<VisibilitySensoronScrollPosition={{y: 2000,// in pixelsx: 500,// in pixelsfromBody: true,callback: (direction)=>doSomething(direction)}}/>
fromBody is a boolean that if true the whole <body> html element would be considered for the scroll events instead of the parent child.
direction could be a string with up and down possible values.
Could be a feature, where you can set a height of an area where the trigger for visible happens instead of being the whole viewport or whole containement element.
The text was updated successfully, but these errors were encountered: