Skip to content

Commit

Permalink
fix: 调整拖拽图标灵敏度
Browse files Browse the repository at this point in the history
  • Loading branch information
gideonsenku committed Mar 27, 2021
1 parent 80a3d65 commit 9f3c764
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 2 deletions.
5 changes: 4 additions & 1 deletion box/chavy.boxjs.html
Original file line number Diff line number Diff line change
Expand Up @@ -1882,11 +1882,14 @@ <h2 :class="version === ver.version ? 'primary--text' : undefined">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)
}
})
},
Expand Down
2 changes: 1 addition & 1 deletion box/chavy.boxjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 12 additions & 0 deletions box/release/box.release.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
{
"releases": [
{
"version": "0.7.80",
"tags": ["beta"],
"author": "@Senku",
"msg": "更新[BoxJs]: 调整拖拽延迟",
"notes": [
{
"name": "修复",
"descs": ["降低首页图标拖拽灵敏度,长按拖动"]
}
]
},
{
"version": "0.7.79",
"tags": ["beta"],
Expand Down
12 changes: 12 additions & 0 deletions box/release/box.release.tf.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
{
"releases": [
{
"version": "0.7.80",
"tags": ["beta"],
"author": "@Senku",
"msg": "更新[BoxJs]: 调整拖拽延迟",
"notes": [
{
"name": "修复",
"descs": ["降低首页图标拖拽灵敏度,长按拖动"]
}
]
},
{
"version": "0.7.79",
"tags": ["beta"],
Expand Down

0 comments on commit 9f3c764

Please sign in to comment.