mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +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();
|
$slideoutOverlay.show();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Touch swipe support
|
||||||
|
let touchStartX = 0;
|
||||||
|
let touchStartY = 0;
|
||||||
|
let touchCurrentX = 0;
|
||||||
|
let isSwiping = false;
|
||||||
|
let isScrolling = false;
|
||||||
|
|
||||||
function close() {
|
function close() {
|
||||||
isOpen = false;
|
isOpen = false;
|
||||||
isSwiping = false;
|
isSwiping = false;
|
||||||
@@ -123,13 +130,6 @@ const navigationPage = new AutoloadPage('navigationPage', () => {
|
|||||||
$('html').removeClass('slideout-open');
|
$('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) => {
|
panel.addEventListener('touchstart', (e) => {
|
||||||
if (!isMobileLayout() || e.target.closest('[data-slideout-ignore]')) return;
|
if (!isMobileLayout() || e.target.closest('[data-slideout-ignore]')) return;
|
||||||
touchStartX = e.touches[0].clientX;
|
touchStartX = e.touches[0].clientX;
|
||||||
|
|||||||
Reference in new issue
Block a user