(tuiConfig?: ScrollConfig)
| 16 | } |
| 17 | |
| 18 | export 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 | } |
no outgoing calls
no test coverage detected