"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.usePreventWheel = usePreventWheel;
var _react = require("react");
function usePreventWheel() {
  (0, _react.useEffect)(() => {
    const handleWheel = e => {
      if (document.activeElement?.type === "number") {
        e.preventDefault();
      }
    };
    window.addEventListener("wheel", handleWheel, {
      passive: false
    });
    return () => {
      window.removeEventListener("wheel", handleWheel);
    };
  }, []);
}