Commit
·
7732bd8
1
Parent(s):
85bdce4
3. Okt. 2024, 05:17
Browse files- _res/_custom.js +2 -2
_res/_custom.js
CHANGED
@@ -111,10 +111,10 @@ function gradioCustomJS() {
|
|
111 |
event.preventDefault()
|
112 |
let scrollLeft = 0
|
113 |
if (Math.sign(event.deltaY) < 0) {
|
114 |
-
scrollLeft =
|
115 |
}
|
116 |
if (Math.sign(event.deltaY) > 0) {
|
117 |
-
scrollLeft =
|
118 |
}
|
119 |
tabNav.scrollLeft = Math.max(0, Math.min(scrollLeft, tabNav.scrollWidth - tabNav.clientWidth))
|
120 |
})
|
|
|
111 |
event.preventDefault()
|
112 |
let scrollLeft = 0
|
113 |
if (Math.sign(event.deltaY) < 0) {
|
114 |
+
scrollLeft = -25
|
115 |
}
|
116 |
if (Math.sign(event.deltaY) > 0) {
|
117 |
+
scrollLeft = +25
|
118 |
}
|
119 |
tabNav.scrollLeft = Math.max(0, Math.min(scrollLeft, tabNav.scrollWidth - tabNav.clientWidth))
|
120 |
})
|