From c2ef4b9dd77a2bfee91239125f9ae279c4843859 Mon Sep 17 00:00:00 2001 From: Oleg Slobodianiuk Date: Fri, 29 Nov 2024 17:33:03 +0100 Subject: [PATCH] Fix: region-clicked event not firing and seek issue inside region (#3911, #3804) --- src/plugins/regions.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/regions.ts b/src/plugins/regions.ts index 1dfa94964..0092aac07 100644 --- a/src/plugins/regions.ts +++ b/src/plugins/regions.ts @@ -527,9 +527,9 @@ class RegionsPlugin extends BasePlugin scrollLeft && start < scrollLeft + clientWidth - if (isVisible) { + if (isVisible && !element.parentElement) { container.appendChild(element) - } else { + } else if (!isVisible && element.parentElement) { element.remove() } }