ui: fix lint error (#1149)

This commit is contained in:
Baoshuo authored and GitHub committed 2026-04-21 21:53:43 +08:00
1 parent a040f366ac
commit 3666178406
1 file changed
+7 -7
@@ -112,6 +112,13 @@ const navigationPage = new AutoloadPage('navigationPage', () => {
$slideoutOverlay.show();
}
// Touch swipe support
let touchStartX = 0;
let touchStartY = 0;
let touchCurrentX = 0;
let isSwiping = false;
let isScrolling = false;
function close() {
isOpen = false;
isSwiping = false;
@@ -123,13 +130,6 @@ const navigationPage = new AutoloadPage('navigationPage', () => {
$('html').removeClass('slideout-open');
}
// Touch swipe support
let touchStartX = 0;
let touchStartY = 0;
let touchCurrentX = 0;
let isSwiping = false;
let isScrolling = false;
panel.addEventListener('touchstart', (e) => {
if (!isMobileLayout() || e.target.closest('[data-slideout-ignore]')) return;
touchStartX = e.touches[0].clientX;