mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-07 13:20:16 +01:00
This commit is contained in:
parent
ba22a78d50
commit
abdf78768b
3 changed files with 8 additions and 6 deletions
|
|
@ -126,7 +126,7 @@ export const initFramework = () => {
|
|||
}, Constants.TIMEOUT_INPUT);
|
||||
}, Constants.TIMEOUT_INPUT);
|
||||
}
|
||||
document.getElementById("modelClose").addEventListener(getEventName(), () => {
|
||||
document.getElementById("modelClose").addEventListener("click", () => {
|
||||
closePanel();
|
||||
});
|
||||
initEditorName();
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ export const handleTouchEnd = () => {
|
|||
return;
|
||||
}
|
||||
|
||||
if (Math.abs(xDiff) > Math.abs(yDiff) && Math.abs(xDiff) > window.innerWidth / 2) {
|
||||
if (Math.abs(xDiff) > Math.abs(yDiff) && Math.abs(xDiff) > window.innerWidth / 4) {
|
||||
if (xDiff > 0) {
|
||||
goForward();
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue