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

Fix suggestions

This commit is contained in:
MrTimscampi 2020-08-06 22:28:52 +02:00
parent 4fce7f8be5
commit 161488616f

View file

@ -98,13 +98,12 @@ function centerOnFocus(e, scrollSlider, horizontal) {
function centerOnFocusHorizontal(e) {
centerOnFocus(e, this, true);
}
function centerOnFocusVertical(e) {
centerOnFocus(e, this, false);
}
export default {
getPosition: getPosition,
centerFocus: {
export const centerFocus = {
on: function (element, horizontal) {
if (horizontal) {
dom.addEventListener(element, 'focus', centerOnFocusHorizontal, {
@ -131,7 +130,11 @@ export default {
});
}
}
},
}
export default {
getPosition: getPosition,
centerFocus: centerFocus,
toCenter: toCenter,
toStart: toStart
};