MCPcopy Index your code
hub / github.com/autoNumeric/autoNumeric / isWheelUpEvent

Method isWheelUpEvent

src/AutoNumericHelper.js:791–797  ·  view source on GitHub ↗

* Return `true` if the given event is a wheelup event * * @param {WheelEvent} wheelEvent * @returns {boolean}

(wheelEvent)

Source from the content-addressed store, hash-verified

789 * @returns {boolean}
790 */
791 static isWheelUpEvent(wheelEvent) {
792 if (!this.isWheelEvent(wheelEvent) || this.isUndefinedOrNullOrEmpty(wheelEvent.deltaY)) {
793 this.throwError(`The event passed as a parameter is not a valid wheel event, '${wheelEvent.type}' given.`);
794 }
795
796 return wheelEvent.deltaY < 0;
797 }
798
799 /**
800 * Return `true` if the given event is a wheeldown event

Callers 1

wheelActionMethod · 0.80

Calls 3

isWheelEventMethod · 0.95
throwErrorMethod · 0.95

Tested by

no test coverage detected