"use strict";

exports.__esModule = true;
exports["default"] = void 0;
var _react = require("react");
var _default = exports["default"] = function _default(ref) {
  var onWheel = (0, _react.useCallback)(function (e) {
    var container = ref.current;
    container.scrollLeft = container.scrollLeft + e.deltaY * 0.1;
  });
  (0, _react.useEffect)(function () {
    if (!ref.current) return;
    var container = ref.current;
    container.addEventListener("wheel", onWheel);
    return function () {
      return container.remove("wheel", onWheel);
    };
  }, []);
};