mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Scroll list to bottom when new logs arrived
Signed-off-by: alexfront <alex.andreev.email@gmail.com>
This commit is contained in:
1 parent
d37ae1bffe
commit
ac8ed1478e
3 files changed
+18
-20
No files matched your search
@@ -14,7 +14,7 @@ interface IntersectionObserverOptions {
|
||||
* disconnect the IntersectionObserver instance after
|
||||
* intersection.
|
||||
*/
|
||||
triggerOnce: boolean;
|
||||
triggerOnce?: boolean;
|
||||
|
||||
/**
|
||||
* Number from 0 to 1 representing the percentage
|
||||
@@ -22,7 +22,7 @@ interface IntersectionObserverOptions {
|
||||
* considered as visible. Can also be an array of
|
||||
* thresholds.
|
||||
*/
|
||||
threshold: number | number[];
|
||||
threshold?: number | number[];
|
||||
|
||||
/**
|
||||
* Element that is used as the viewport for checking visibility
|
||||
@@ -38,7 +38,7 @@ interface IntersectionObserverOptions {
|
||||
}
|
||||
|
||||
function useIntersectionObserver(
|
||||
element: Element,
|
||||
element: Element | null,
|
||||
{
|
||||
threshold = 0,
|
||||
rootMargin = "0%",
|
||||
|
||||
Reference in new issue
Block a user