mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-02 06:06:41 +01:00
Fix j/k not skipping over display:none items
Hide-filtered posts are display:none-d
This commit is contained in:
parent
b1cad570ad
commit
de0da11cc0
1 changed files with 2 additions and 2 deletions
|
@ -149,7 +149,7 @@ function Timeline({
|
|||
const activeItemRect = activeItem?.getBoundingClientRect();
|
||||
const allItems = Array.from(
|
||||
scrollableRef.current.querySelectorAll(itemsSelector),
|
||||
);
|
||||
).filter((item) => !!item.offsetHeight);
|
||||
if (
|
||||
activeItem &&
|
||||
activeItemRect.top < scrollableRef.current.clientHeight &&
|
||||
|
@ -188,7 +188,7 @@ function Timeline({
|
|||
const activeItemRect = activeItem?.getBoundingClientRect();
|
||||
const allItems = Array.from(
|
||||
scrollableRef.current.querySelectorAll(itemsSelector),
|
||||
);
|
||||
).filter((item) => !!item.offsetHeight);
|
||||
if (
|
||||
activeItem &&
|
||||
activeItemRect.top < scrollableRef.current.clientHeight &&
|
||||
|
|
Loading…
Reference in a new issue