File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -66,16 +66,16 @@ function doneAddFile() {
66
66
}
67
67
68
68
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
+ // }
79
79
80
80
const activeFile = computed ({
81
81
get : () => store .state .activeFile .filename ,
You can’t perform that action at this time.
0 commit comments