1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Add 'scroll on focus' to emby-tabs

This commit is contained in:
Dmitry Lyzo 2021-04-25 11:20:08 +03:00
parent b0531085af
commit f233182573
2 changed files with 20 additions and 2 deletions

View file

@ -223,8 +223,9 @@ import layoutManager from './layoutManager';
let parent = element.parentElement;
while (parent) {
// Skip 'emby-scroller' because it scrolls by itself
// Skip 'emby-scroller' and 'emby-tabs' because they scroll by themselves
if (!parent.classList.contains('emby-scroller') &&
!parent.classList.contains('emby-tabs') &&
parent[nameScroll] > parent[nameClient] && parent.classList.contains(nameClass)) {
return parent;
}