Skip to content

Commit 29af361

Browse files
committed
fix: remove unused function
1 parent d7658e9 commit 29af361

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/editor/FileSelector.vue

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -66,16 +66,16 @@ function doneAddFile() {
6666
}
6767
6868
const fileSel = ref(null)
69-
function horizontalScroll(e: WheelEvent) {
70-
e.preventDefault()
71-
const el = fileSel.value! as HTMLElement
72-
const direction =
73-
Math.abs(e.deltaX) >= Math.abs(e.deltaY) ? e.deltaX : e.deltaY
74-
const distance = 30 * (direction > 0 ? 1 : -1)
75-
el.scrollTo({
76-
left: el.scrollLeft + distance
77-
})
78-
}
69+
// function horizontalScroll(e: WheelEvent) {
70+
// e.preventDefault()
71+
// const el = fileSel.value! as HTMLElement
72+
// const direction =
73+
// Math.abs(e.deltaX) >= Math.abs(e.deltaY) ? e.deltaX : e.deltaY
74+
// const distance = 30 * (direction > 0 ? 1 : -1)
75+
// el.scrollTo({
76+
// left: el.scrollLeft + distance
77+
// })
78+
// }
7979
8080
const activeFile = computed({
8181
get: () => store.state.activeFile.filename,

0 commit comments

Comments
 (0)