mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 18:10:12 +01:00
This commit is contained in:
parent
f108cdb2bb
commit
b2c68ba47e
1 changed files with 8 additions and 2 deletions
|
|
@ -25,6 +25,7 @@ import {scrollCenter} from "../util/highlightById";
|
||||||
import {getAllModels} from "./getAll";
|
import {getAllModels} from "./getAll";
|
||||||
import {countBlockWord} from "./status";
|
import {countBlockWord} from "./status";
|
||||||
import {saveScroll} from "../protyle/scroll/saveScroll";
|
import {saveScroll} from "../protyle/scroll/saveScroll";
|
||||||
|
import {Asset} from "../asset";
|
||||||
|
|
||||||
export class Wnd {
|
export class Wnd {
|
||||||
public id: string;
|
public id: string;
|
||||||
|
|
@ -324,8 +325,13 @@ export class Wnd {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (currentTab && target === currentTab.headElement && currentTab.model instanceof Graph) {
|
if (currentTab && target === currentTab.headElement) {
|
||||||
currentTab.model.onGraph(false);
|
if (currentTab.model instanceof Graph) {
|
||||||
|
currentTab.model.onGraph(false);
|
||||||
|
} else if (currentTab.model instanceof Asset && currentTab.model.pdfObject) {
|
||||||
|
// https://ld246.com/article/1660283484105
|
||||||
|
currentTab.model.pdfObject.pdfViewer.container.focus();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (currentTab && currentTab.model instanceof Editor) {
|
if (currentTab && currentTab.model instanceof Editor) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue