Fix typo
This commit is contained in:
@ -343,8 +343,8 @@ const elementIsVisibleInViewport = (el, partiallyVisible = false) => {
|
||||
: top >= 0 && left >= 0 && bottom <= innerHeight && right <= innerWidth;
|
||||
}
|
||||
// e.g. 100x100 viewport and a 10x10px element at position {top: -1, left: 0, bottom: 9, right: 10}
|
||||
// elementIsInViewport(el) -> false (not fully visible)
|
||||
// elementIsInViewport(el, true) -> true (partially visible)
|
||||
// elementIsVisibleInViewport(el) -> false (not fully visible)
|
||||
// elementIsVisibleInViewport(el, true) -> true (partially visible)
|
||||
```
|
||||
|
||||
[⬆ back to top](#table-of-contents)
|
||||
|
||||
@ -14,6 +14,6 @@ const elementIsVisibleInViewport = (el, partiallyVisible = false) => {
|
||||
: top >= 0 && left >= 0 && bottom <= innerHeight && right <= innerWidth;
|
||||
}
|
||||
// e.g. 100x100 viewport and a 10x10px element at position {top: -1, left: 0, bottom: 9, right: 10}
|
||||
// elementIsInViewport(el) -> false (not fully visible)
|
||||
// elementIsInViewport(el, true) -> true (partially visible)
|
||||
// elementIsVisibleInViewport(el) -> false (not fully visible)
|
||||
// elementIsVisibleInViewport(el, true) -> true (partially visible)
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user