diff --git a/box/chavy.boxjs.html b/box/chavy.boxjs.html index 833794184..f4f6c8baf 100644 --- a/box/chavy.boxjs.html +++ b/box/chavy.boxjs.html @@ -1882,11 +1882,14 @@

v{{ver.versio const el = document.getElementById('appList') const _this = this const sortable = Sortable.create(el, { + delay: 200, onEnd(evt) { const favApps = _this.box.usercfgs.favapps const oldIdx = evt.oldIndex const newIdx = evt.newIndex - favApps[oldIdx] = favApps.splice(newIdx, 1, favApps[oldIdx])[0] + const moveItem = favApps[oldIdx] + favApps.splice(oldIdx, 1) + favApps.splice(newIdx, 0, moveItem) } }) }, diff --git a/box/chavy.boxjs.js b/box/chavy.boxjs.js index e6c3e4a88..1e5469e26 100644 --- a/box/chavy.boxjs.js +++ b/box/chavy.boxjs.js @@ -3,7 +3,7 @@ const $ = new Env('BoxJs') // 为 eval 准备的上下文环境 const $eval_env = {} -$.version = '0.7.79' +$.version = '0.7.80' $.versionType = 'beta' // 发出的请求需要需要 Surge、QuanX 的 rewrite diff --git a/box/release/box.release.json b/box/release/box.release.json index 96497c230..54aff3270 100644 --- a/box/release/box.release.json +++ b/box/release/box.release.json @@ -1,5 +1,17 @@ { "releases": [ + { + "version": "0.7.80", + "tags": ["beta"], + "author": "@Senku", + "msg": "更新[BoxJs]: 调整拖拽延迟", + "notes": [ + { + "name": "修复", + "descs": ["降低首页图标拖拽灵敏度,长按拖动"] + } + ] + }, { "version": "0.7.79", "tags": ["beta"], diff --git a/box/release/box.release.tf.json b/box/release/box.release.tf.json index 205453f5c..8384287af 100644 --- a/box/release/box.release.tf.json +++ b/box/release/box.release.tf.json @@ -1,5 +1,17 @@ { "releases": [ + { + "version": "0.7.80", + "tags": ["beta"], + "author": "@Senku", + "msg": "更新[BoxJs]: 调整拖拽延迟", + "notes": [ + { + "name": "修复", + "descs": ["降低首页图标拖拽灵敏度,长按拖动"] + } + ] + }, { "version": "0.7.79", "tags": ["beta"],