MCPcopy
hub / github.com/anomalyco/opencode / getScrollAcceleration

Function getScrollAcceleration

packages/tui/src/util/scroll.ts:18–27  ·  view source on GitHub ↗
(tuiConfig?: ScrollConfig)

Source from the content-addressed store, hash-verified

16}
17
18export function getScrollAcceleration(tuiConfig?: ScrollConfig): ScrollAcceleration {
19 if (tuiConfig?.scroll_acceleration?.enabled) {
20 return new MacOSScrollAccel()
21 }
22 if (tuiConfig?.scroll_speed !== undefined) {
23 return new CustomSpeedScroll(tuiConfig.scroll_speed)
24 }
25
26 return new CustomSpeedScroll(3)
27}

Callers 8

ErrorComponentFunction · 0.90
AutocompleteFunction · 0.90
EditBodyFunction · 0.90
SidebarFunction · 0.90
SessionFunction · 0.90
DialogSelectFunction · 0.90
DiffViewerFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected