"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.wrapEvent = void 0;

var wrapEvent = function wrapEvent(theirHandler, ourHandler) {
  return function (event) {
    if (theirHandler) {
      theirHandler(event);
    }

    if (!event.defaultPrevented) {
      return ourHandler(event);
    }

    return null;
  };
};

exports.wrapEvent = wrapEvent;
//# sourceMappingURL=wrapEvent.js.map