Sebastiankay commited on
Commit
7732bd8
·
1 Parent(s): 85bdce4

3. Okt. 2024, 05:17

Browse files
Files changed (1) hide show
  1. _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 = tabNav.scrollLeft - 15
115
  }
116
  if (Math.sign(event.deltaY) > 0) {
117
- scrollLeft = tabNav.scrollLeft + 15
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
  })