This commit is contained in:
Vanessa 2024-02-06 09:16:01 +08:00
parent b640497cf0
commit d01fec553d
3 changed files with 4 additions and 4 deletions

View file

@ -379,7 +379,7 @@ export const bazaar = {
}); });
} }
bazaar._data.downloaded = response.data.packages; bazaar._data.downloaded = response.data.packages;
const checkElement = contentElement.parentElement.querySelector(".b3-switch") const checkElement = contentElement.parentElement.querySelector(".b3-switch");
if (bazaarType === "plugins") { if (bazaarType === "plugins") {
checkElement.classList.remove("fn__none"); checkElement.classList.remove("fn__none");
} else { } else {

View file

@ -154,7 +154,7 @@ export const handleTouchStart = (event: TouchEvent) => {
time = 0; time = 0;
event.stopImmediatePropagation(); event.stopImmediatePropagation();
} }
scrollBlock = false scrollBlock = false;
}; };
let previousClientX: number; let previousClientX: number;
@ -229,7 +229,7 @@ export const handleTouchMove = (event: TouchEvent) => {
(xDiff < 0 && scrollElement.scrollLeft > 0) || (xDiff < 0 && scrollElement.scrollLeft > 0) ||
(xDiff > 0 && scrollElement.clientWidth + scrollElement.scrollLeft < scrollElement.scrollWidth) (xDiff > 0 && scrollElement.clientWidth + scrollElement.scrollLeft < scrollElement.scrollWidth)
)) { )) {
scrollBlock = true scrollBlock = true;
return; return;
} }
if (scrollBlock) { if (scrollBlock) {

View file

@ -288,7 +288,7 @@ export const popTextCell = (protyle: IProtyle, cellElements: HTMLElement[], type
/// #endif /// #endif
cellRect = cellElements[0].getBoundingClientRect(); cellRect = cellElements[0].getBoundingClientRect();
let html = ""; let html = "";
let height = cellRect.height let height = cellRect.height;
if (contentElement) { if (contentElement) {
const contentRect = contentElement.getBoundingClientRect(); const contentRect = contentElement.getBoundingClientRect();
if (cellRect.bottom > contentRect.bottom) { if (cellRect.bottom > contentRect.bottom) {