Vanessa 2023-03-23 10:16:40 +08:00 committed by Liang Ding
parent ba22a78d50
commit abdf78768b
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
3 changed files with 8 additions and 6 deletions

View file

@ -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();

View file

@ -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 {