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

define functions

This commit is contained in:
Cameron 2020-07-10 19:57:42 +01:00
parent e3d9518574
commit c18118275a

View file

@ -76,13 +76,13 @@ import 'emby-button';
// implement without hammer // implement without hammer
const pageCount = getTabContainersFn().length; const pageCount = getTabContainersFn().length;
onSwipeLeft = function (e, target) { const onSwipeLeft = function (e, target) {
if (allowSwipe(target) && view.contains(target)) { if (allowSwipe(target) && view.contains(target)) {
tabsElem.selectNext(); tabsElem.selectNext();
} }
}; };
onSwipeRight = function (e, target) { const onSwipeRight = function (e, target) {
if (allowSwipe(target) && view.contains(target)) { if (allowSwipe(target) && view.contains(target)) {
tabsElem.selectPrevious(); tabsElem.selectPrevious();
} }