(e3)
| 905 | return { bufferElements: r2, cursorElement: i3 }; |
| 906 | } |
| 907 | getLinesScrolled(e3) { |
| 908 | if (0 === e3.deltaY || e3.shiftKey) return 0; |
| 909 | let t3 = this._applyScrollModifier(e3.deltaY, e3); |
| 910 | return e3.deltaMode === WheelEvent.DOM_DELTA_PIXEL ? (t3 /= this._currentRowHeight + 0, this._wheelPartialScroll += t3, t3 = Math.floor(Math.abs(this._wheelPartialScroll)) * (this._wheelPartialScroll > 0 ? 1 : -1), this._wheelPartialScroll %= 1) : e3.deltaMode === WheelEvent.DOM_DELTA_PAGE && (t3 *= this._bufferService.rows), t3; |
| 911 | } |
| 912 | _applyScrollModifier(e3, t3) { |
| 913 | const i3 = this._optionsService.rawOptions.fastScrollModifier; |
| 914 | return "alt" === i3 && t3.altKey || "ctrl" === i3 && t3.ctrlKey || "shift" === i3 && t3.shiftKey ? e3 * this._optionsService.rawOptions.fastScrollSensitivity * this._optionsService.rawOptions.scrollSensitivity : e3 * this._optionsService.rawOptions.scrollSensitivity; |
no test coverage detected