fkhadra / react-on-screen

Check if a react component in the viewport
https://fkhadra.github.io/react-on-screen/
MIT License
405 stars 50 forks source link

split just offset value to offset top and offset left #47

Open songkrod opened 5 years ago

songkrod commented 5 years ago

change offset prop type to [number|object(left|top)] and split offset prop to [left|top] value and add condition to both of offset [left|top] that's always visible if it -1

coveralls commented 5 years ago

Coverage Status

Coverage decreased (-9.3%) to 87.597% when pulling 85a4f23dca682357785af7f0617e74e017ee7b3e on songkrod:master into ee725d31d1695eeb42f700641787a64d2841338a on fkhadra:master.