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;
const checkElement = contentElement.parentElement.querySelector(".b3-switch")
const checkElement = contentElement.parentElement.querySelector(".b3-switch");
if (bazaarType === "plugins") {
checkElement.classList.remove("fn__none");
} else {

View file

@ -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) {

View file

@ -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) {