MCPcopy Index your code
hub / github.com/Fiddle-Digital/string-scroll / updateModeParams

Method updateModeParams

src/index.ts:167–178  ·  view source on GitHub ↗
(mobileMode: "smooth" | "disable" | "default")

Source from the content-addressed store, hash-verified

165 }
166
167 private updateModeParams(mobileMode: "smooth" | "disable" | "default"){
168 if (w.innerWidth < 1024 || isTouchDevice()) {
169 this.scrollMode = this.mMode
170 } else {
171 this.scrollMode = this.dMode
172 }
173 if(mobileMode == "disable"){
174 document.documentElement.classList.add(`-without-scrollbar`)
175 } else {
176 document.documentElement.classList.remove(`-without-scrollbar`)
177 }
178 }
179
180 private sA: number = 0.13
181 get speedAccelerate(){

Callers 3

enabledMethod · 0.95
mobileScrollModeMethod · 0.95
desktopScrollModeMethod · 0.95

Calls 1

isTouchDeviceFunction · 0.85

Tested by

no test coverage detected