MCPcopy Create free account
hub / github.com/Yantesoft/LinuxdoAssistant / updateSpeed

Function updateSpeed

linuxdo-helper.user.js:600–607  ·  view source on GitHub ↗
(ratio)

Source from the content-addressed store, hash-verified

598 increaseButton.title = '提高速度';
599
600 const updateSpeed = (ratio) => {
601 ratio = normalizeSpeedRatio(ratio);
602 slider.value = ratio;
603 valueDisplay.textContent = formatSpeedDisplay(ratio);
604 saveSpeedRatio(ratio);
605
606 restartScrolling();
607 };
608
609 slider.addEventListener('input', () => {
610 updateSpeed(parseFloat(slider.value));

Callers 1

Calls 4

normalizeSpeedRatioFunction · 0.85
formatSpeedDisplayFunction · 0.85
saveSpeedRatioFunction · 0.85
restartScrollingFunction · 0.85

Tested by

no test coverage detected