From a41998f0f043a3a23af051c704f1eabfd88ca952 Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Tue, 31 Oct 2023 23:03:18 -0700 Subject: [PATCH] sel: fix scrolling up on nx Signed-off-by: Varun Patil --- src/components/SelectionManager.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/SelectionManager.vue b/src/components/SelectionManager.vue index b2d99a79..3b543334 100644 --- a/src/components/SelectionManager.vue +++ b/src/components/SelectionManager.vue @@ -526,7 +526,9 @@ export default defineComponent({ ); // Which photo is the cursor over, if any - const elem: any = document.elementFromPoint(touch.clientX, clampedY)?.closest('.p-outer-super'); + const elem: any = document + .elementsFromPoint(touch.clientX, clampedY) + .find((e) => e.classList.contains('p-outer-super')); let overPhoto: IPhoto | null = elem?.__vue__?.data; if (overPhoto && overPhoto.flag & this.c.FLAG_PLACEHOLDER) overPhoto = null;