From 0e0b73fdb93da2c6f68a89d066a7471be41f18d6 Mon Sep 17 00:00:00 2001 From: Alexei Anoshenko <2277098+anoshenko@users.noreply.github.com> Date: Sun, 8 Dec 2024 21:11:46 +0300 Subject: [PATCH] Bug fixing --- app_scripts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app_scripts.js b/app_scripts.js index e187c4a..df8abb9 100644 --- a/app_scripts.js +++ b/app_scripts.js @@ -633,6 +633,7 @@ function listItemClickEvent(element, event) { const list = element.parentNode.parentNode if (list) { const number = getListItemNumber(element.id) + selectListItem(list, element) sendMessage("itemClick{session=" + sessionID + ",id=" + list.id + ",number=" + number + "}"); } } @@ -692,7 +693,6 @@ function selectListItem(element, item) { if (number != undefined) { message = "itemSelected{session=" + sessionID + ",id=" + element.id + ",number=" + number + "}"; } - if (item.scrollIntoViewIfNeeded) { item.scrollIntoViewIfNeeded()