From d01fec553dbbc6cf15eac9f378bda1d196e03739 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Tue, 6 Feb 2024 09:16:01 +0800 Subject: [PATCH] :rotating_light: --- app/src/config/bazaar.ts | 2 +- app/src/mobile/util/touch.ts | 4 ++-- app/src/protyle/render/av/cell.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/config/bazaar.ts b/app/src/config/bazaar.ts index 44d1827b7..95a8f9fbd 100644 --- a/app/src/config/bazaar.ts +++ b/app/src/config/bazaar.ts @@ -379,7 +379,7 @@ export const bazaar = { }); } bazaar._data.downloaded = response.data.packages; - const checkElement = contentElement.parentElement.querySelector(".b3-switch") + const checkElement = contentElement.parentElement.querySelector(".b3-switch"); if (bazaarType === "plugins") { checkElement.classList.remove("fn__none"); } else { diff --git a/app/src/mobile/util/touch.ts b/app/src/mobile/util/touch.ts index c74b3c88e..6c8684ccb 100644 --- a/app/src/mobile/util/touch.ts +++ b/app/src/mobile/util/touch.ts @@ -154,7 +154,7 @@ export const handleTouchStart = (event: TouchEvent) => { time = 0; event.stopImmediatePropagation(); } - scrollBlock = false + scrollBlock = false; }; let previousClientX: number; @@ -229,7 +229,7 @@ export const handleTouchMove = (event: TouchEvent) => { (xDiff < 0 && scrollElement.scrollLeft > 0) || (xDiff > 0 && scrollElement.clientWidth + scrollElement.scrollLeft < scrollElement.scrollWidth) )) { - scrollBlock = true + scrollBlock = true; return; } if (scrollBlock) { diff --git a/app/src/protyle/render/av/cell.ts b/app/src/protyle/render/av/cell.ts index 2650c5b15..cb25be85a 100644 --- a/app/src/protyle/render/av/cell.ts +++ b/app/src/protyle/render/av/cell.ts @@ -288,7 +288,7 @@ export const popTextCell = (protyle: IProtyle, cellElements: HTMLElement[], type /// #endif cellRect = cellElements[0].getBoundingClientRect(); let html = ""; - let height = cellRect.height + let height = cellRect.height; if (contentElement) { const contentRect = contentElement.getBoundingClientRect(); if (cellRect.bottom > contentRect.bottom) {