mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
fix scroller button issues
This commit is contained in:
parent
976ec25e3b
commit
73b14386ef
4 changed files with 60 additions and 65 deletions
|
@ -149,6 +149,7 @@ define(['scroller', 'dom', 'layoutManager', 'inputManager', 'focusManager', 'bro
|
|||
// If just inserted it might not have any height yet - yes this is a hack
|
||||
this.scroller = new scroller(scrollFrame, options);
|
||||
this.scroller.init();
|
||||
this.scroller.reload();
|
||||
|
||||
if (layoutManager.tv && this.getAttribute('data-centerfocus')) {
|
||||
initCenterFocus(this, this.scroller);
|
||||
|
@ -183,6 +184,14 @@ define(['scroller', 'dom', 'layoutManager', 'inputManager', 'focusManager', 'bro
|
|||
}
|
||||
};
|
||||
|
||||
ScrollerProtoType.afterRefresh = function () {
|
||||
var buttons = this.parentNode.parentNode.querySelector('.emby-scrollbuttons');
|
||||
if (buttons) {
|
||||
this.parentNode.scroller.reload();
|
||||
buttons.refresh(this.parentNode);
|
||||
}
|
||||
}
|
||||
|
||||
ScrollerProtoType.detachedCallback = function () {
|
||||
if (this.getAttribute('data-navcommands')) {
|
||||
inputManager.off(this, onInputCommand);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue