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

@ -407,8 +407,7 @@
const iCloudRoot = path.join(decodeURIComponent(getSearch('home')), 'Library', 'Mobile Documents')
const allFiles = walk(iCloudRoot)
for (const file of allFiles) {
console.log(file)
if (-1 < absPath.indexOf(file)) {
if (-1 < absPath.indexOf(file.toLowerCase())) {
return true
}
}
@ -420,13 +419,16 @@
const path = require('path')
const dirFiles = fs.readdirSync(dir)
for (const f of dirFiles) {
const stat = fs.lstatSync(dir + path.sep + f)
let stat = fs.lstatSync(dir + path.sep + f)
if (stat.isSymbolicLink()) {
files.push(fs.readlinkSync(dir + path.sep + f))
continue
}
if (stat.isDirectory()) {
// 如果已经遍历过则不再遍历
if (files.includes(dir + path.sep + f)) {
continue
}
walk(dir + path.sep + f, files)
} else {
files.push(dir + path.sep + f)

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 {