MCPcopy Create free account
hub / github.com/UI5/webcomponents / _onMouseWheel

Method _onMouseWheel

packages/main/src/StepInput.ts:509–519  ·  view source on GitHub ↗
(e: WheelEvent)

Source from the content-addressed store, hash-verified

507 }
508
509 _onMouseWheel(e: WheelEvent) {
510 if (this.disabled || this.readonly || !this._isFocused) {
511 return;
512 }
513
514 e.preventDefault();
515
516 const isScrollUp = e.deltaY < 0;
517 const modifier = isScrollUp ? this.step : -this.step;
518 this._modifyValue(modifier, true);
519 }
520
521 _setButtonState() {
522 this._decIconDisabled = this.min !== undefined && this.value <= this.min;

Callers

nothing calls this directly

Calls 1

_modifyValueMethod · 0.95

Tested by

no test coverage detected