mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-25 16:34:06 +01:00
This commit is contained in:
parent
70ab49f7aa
commit
40567de9fd
2 changed files with 0 additions and 19 deletions
|
|
@ -29,15 +29,6 @@ const popSide = (render = true) => {
|
|||
};
|
||||
|
||||
export const handleTouchEnd = (event: TouchEvent, app: App) => {
|
||||
if (isInAndroid() && window.siyuan.mobile.androidLastRange && getSelection().rangeCount>0) {
|
||||
const range = getSelection().getRangeAt(0);
|
||||
if (range.toString() && range.startContainer === window.siyuan.mobile.androidLastRange.startContainer) {
|
||||
range.setStart(window.siyuan.mobile.androidLastRange.startContainer, window.siyuan.mobile.androidLastRange.startOffset);
|
||||
focusByRange(range);
|
||||
const editor = getCurrentEditor();
|
||||
editor.protyle.toolbar.range = range;
|
||||
}
|
||||
}
|
||||
if (isIPhone() && globalTouchEnd(event, yDiff, time, app)) {
|
||||
event.stopImmediatePropagation();
|
||||
event.preventDefault();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue