vvo / in-viewport

Get a callback when any element becomes visible in a viewport (body or custom viewport)
MIT License
276 stars 24 forks source link

debounce value higher than 150 (failsave) breaks functionality #32

Open LOK-Soft opened 7 years ago

LOK-Soft commented 7 years ago

When working in failsave-mode (standard), using an debounce value higher than 150 (e.g. 200) will break functionality (callback is never called, because the intervall will prevent this)

vvo commented 7 years ago

Do you have any idea how to fix this? Thanks

LOK-Soft commented 7 years ago

I will look into it

LOK-Soft commented 7 years ago

PR will automatically set failsafe value to debounceValue + 50 to ensure functionality. Expl.: If we want to debounce requests, we do not need a higher rate of failsafe checks