mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-24 10:30:13 +01:00
This commit is contained in:
parent
70d615d66a
commit
f66685fda3
2 changed files with 4 additions and 0 deletions
|
|
@ -5,6 +5,7 @@ import {activeBlur} from "./keyboardToolbar";
|
|||
import {isIPhone} from "../../protyle/util/compatibility";
|
||||
import {App} from "../../index";
|
||||
import {globalTouchEnd, globalTouchStart} from "../../boot/globalEvent/touch";
|
||||
import {showMessage} from "../../dialog/message";
|
||||
|
||||
let clientX: number;
|
||||
let clientY: number;
|
||||
|
|
@ -138,6 +139,7 @@ export const handleTouchStart = (event: TouchEvent) => {
|
|||
if (0 < event.touches.length && ((event.touches[0].target as HTMLElement).tagName === "VIDEO" || (event.touches[0].target as HTMLElement).tagName === "AUDIO")) {
|
||||
// https://github.com/siyuan-note/siyuan/issues/14569
|
||||
activeBlur();
|
||||
showMessage("activeBlur1");
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -314,6 +316,7 @@ export const handleTouchMove = (event: TouchEvent) => {
|
|||
transformMask((windowWidth - xDiff) / windowWidth);
|
||||
}
|
||||
activeBlur();
|
||||
showMessage("activeBlur2");
|
||||
if (window.siyuan.mobile.editor) {
|
||||
window.siyuan.mobile.editor.protyle.contentElement.style.overflow = "hidden";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -228,6 +228,7 @@ export class Toolbar {
|
|||
}
|
||||
|
||||
public setInlineMark(protyle: IProtyle, type: string, action: "range" | "toolbar", textObj?: ITextOption) {
|
||||
showMessage("setInlineMark");
|
||||
const nodeElement = hasClosestBlock(this.range.startContainer);
|
||||
if (!nodeElement || nodeElement.getAttribute("data-type") === "NodeCodeBlock") {
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue