mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
ui: fix lint error (#1149)
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user