mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-03-21 13:19:22 +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 activeItemRect = activeItem?.getBoundingClientRect();
|
||||||
const allItems = Array.from(
|
const allItems = Array.from(
|
||||||
scrollableRef.current.querySelectorAll(itemsSelector),
|
scrollableRef.current.querySelectorAll(itemsSelector),
|
||||||
);
|
).filter((item) => !!item.offsetHeight);
|
||||||
if (
|
if (
|
||||||
activeItem &&
|
activeItem &&
|
||||||
activeItemRect.top < scrollableRef.current.clientHeight &&
|
activeItemRect.top < scrollableRef.current.clientHeight &&
|
||||||
|
@ -188,7 +188,7 @@ function Timeline({
|
||||||
const activeItemRect = activeItem?.getBoundingClientRect();
|
const activeItemRect = activeItem?.getBoundingClientRect();
|
||||||
const allItems = Array.from(
|
const allItems = Array.from(
|
||||||
scrollableRef.current.querySelectorAll(itemsSelector),
|
scrollableRef.current.querySelectorAll(itemsSelector),
|
||||||
);
|
).filter((item) => !!item.offsetHeight);
|
||||||
if (
|
if (
|
||||||
activeItem &&
|
activeItem &&
|
||||||
activeItemRect.top < scrollableRef.current.clientHeight &&
|
activeItemRect.top < scrollableRef.current.clientHeight &&
|
||||||
|
|
Loading…
Reference in a new issue