|
@@ -336,6 +336,19 @@ export class Background {
|
|
target = target.parentElement;
|
|
target = target.parentElement;
|
|
}
|
|
}
|
|
});
|
|
});
|
|
|
|
+ this.element.addEventListener("touchstart", (event) => {
|
|
|
|
+ // https://github.com/siyuan-note/siyuan/issues/6328
|
|
|
|
+ if (protyle.disabled) {
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ const target = event.target as HTMLElement;
|
|
|
|
+ if (hasClosestByClassName(target, "protyle-icons") ||
|
|
|
|
+ hasClosestByClassName(target, "item") ||
|
|
|
|
+ target.classList.contains("protyle-background__icon")) {
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ this.element.classList.toggle("protyle-background--mobileshow");
|
|
|
|
+ });
|
|
}
|
|
}
|
|
|
|
|
|
public render(ial: IObject, rootId: string) {
|
|
public render(ial: IObject, rootId: string) {
|