mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-09 06:02:33 +01:00
♻️
This commit is contained in:
parent
fd0893d8d8
commit
6806392b41
57 changed files with 271 additions and 360 deletions
|
|
@ -3,7 +3,6 @@ import {getSelectionOffset} from "../util/selection";
|
|||
import {fetchPost} from "../../util/fetch";
|
||||
import {onGet} from "../util/onGet";
|
||||
import {Constants} from "../../constants";
|
||||
import {App} from "../../index";
|
||||
|
||||
export const saveScroll = (protyle: IProtyle, getObject = false) => {
|
||||
if (!protyle.wysiwyg.element.firstElementChild || window.siyuan.config.readonly) {
|
||||
|
|
@ -46,7 +45,6 @@ export const saveScroll = (protyle: IProtyle, getObject = false) => {
|
|||
};
|
||||
|
||||
export const getDocByScroll = (options: {
|
||||
app: App,
|
||||
protyle: IProtyle,
|
||||
scrollAttr: IScrollAttr,
|
||||
mergedOptions?: IOptions,
|
||||
|
|
@ -75,7 +73,6 @@ export const getDocByScroll = (options: {
|
|||
protyle: options.protyle,
|
||||
action: actions,
|
||||
scrollAttr: options.scrollAttr,
|
||||
app: options.app
|
||||
});
|
||||
if (options.cb) {
|
||||
options.cb();
|
||||
|
|
@ -94,7 +91,6 @@ export const getDocByScroll = (options: {
|
|||
protyle: options.protyle,
|
||||
action: actions,
|
||||
scrollAttr: options.scrollAttr,
|
||||
app: options.app
|
||||
});
|
||||
if (options.cb) {
|
||||
options.cb();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue