shared
utils
string
object
is
extension
js
tracking
string
dom
when
selection
position
iframe
event
scroll
console
node
string
project
fs
console
isUserScrolling
Type:Function
Status:stable
Since:1.0.0
Platform:js
@blackbyte.sugar.js.is
Check the user is scrolling a particular element
Params
- $elm”document”HTMLElement
The element to monitor
Return
- -Boolean
If the element is in the viewport or not
Example
import { isUserScrolling } from '@blackbyte/sugar/is'
if (isUserScrolling(myCoolHTMLElement) {
// i'm in the viewport
}Todo
- testsnormal
Author
- Olivier Bosselolivier.bossel@gmail.comhttps://blackbyte.space