mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-27 03:48:48 +01:00
🐛 Clicking on the video will jump to the block where the cursor is on mobile https://github.com/siyuan-note/siyuan/issues/14569
This commit is contained in:
parent
a5eab97728
commit
31e1248020
2 changed files with 12 additions and 11 deletions
|
|
@ -2,7 +2,8 @@ import {getTextStar, paste} from "../util/paste";
|
|||
import {
|
||||
hasClosestBlock,
|
||||
hasClosestByAttribute,
|
||||
hasClosestByClassName, hasClosestByTag,
|
||||
hasClosestByClassName,
|
||||
hasClosestByTag,
|
||||
hasTopClosestByClassName,
|
||||
isInEmbedBlock,
|
||||
} from "../util/hasClosest";
|
||||
|
|
@ -13,7 +14,8 @@ import {
|
|||
focusSideBlock,
|
||||
getEditorRange,
|
||||
getSelectionOffset,
|
||||
setFirstNodeRange, setInsertWbrHTML,
|
||||
setFirstNodeRange,
|
||||
setInsertWbrHTML,
|
||||
setLastNodeRange,
|
||||
} from "../util/selection";
|
||||
import {Constants} from "../../constants";
|
||||
|
|
@ -39,7 +41,8 @@ import {
|
|||
getNextBlock,
|
||||
getTopAloneElement,
|
||||
hasNextSibling,
|
||||
hasPreviousSibling, isEndOfBlock,
|
||||
hasPreviousSibling,
|
||||
isEndOfBlock,
|
||||
isNotEditBlock
|
||||
} from "./getBlock";
|
||||
import {transaction, updateTransaction} from "./transaction";
|
||||
|
|
@ -2175,14 +2178,6 @@ export class WYSIWYG {
|
|||
});
|
||||
});
|
||||
hideElements(["hint", "util"], protyle);
|
||||
/// #if MOBILE
|
||||
// https://github.com/siyuan-note/siyuan/issues/14569
|
||||
if (event.target.tagName === "VIDEO") {
|
||||
mobileBlur = true;
|
||||
activeBlur();
|
||||
return;
|
||||
}
|
||||
/// #endif
|
||||
const ctrlIsPressed = isOnlyMeta(event);
|
||||
const backlinkBreadcrumbItemElement = hasClosestByClassName(event.target, "protyle-breadcrumb__item");
|
||||
if (backlinkBreadcrumbItemElement) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue