MCPcopy Index your code
hub / github.com/codeaashu/claude-code / _clearSmoothScrollState

Method _clearSmoothScrollState

src/server/web/public/terminal.js:870–872  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

868 return this._optionsService.rawOptions.smoothScrollDuration && this._smoothScrollState.startTime ? Math.max(Math.min((Date.now() - this._smoothScrollState.startTime) / this._optionsService.rawOptions.smoothScrollDuration, 1), 0) : 1;
869 }
870 _clearSmoothScrollState() {
871 this._smoothScrollState.startTime = 0, this._smoothScrollState.origin = -1, this._smoothScrollState.target = -1;
872 }
873 _bubbleScroll(e3, t3) {
874 const i3 = this._viewportElement.scrollTop + this._lastRecordedViewportHeight;
875 return !(t3 < 0 && 0 !== this._viewportElement.scrollTop || t3 > 0 && i3 < this._lastRecordedBufferHeight) || (e3.cancelable && e3.preventDefault(), false);

Callers 3

_smoothScrollMethod · 0.80
handleWheelMethod · 0.80
scrollLinesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected