UNPKG

@mantine/core

Version:

React components library focused on usability, accessibility and developer experience

12 lines (11 loc) 491 B
"use client"; //#region packages/@mantine/core/src/components/ScrollArea/utils/compose-event-handlers.ts function composeEventHandlers(originalEventHandler, ourEventHandler, { checkForDefaultPrevented = true } = {}) { return (event) => { originalEventHandler?.(event); if (checkForDefaultPrevented === false || !event.defaultPrevented) ourEventHandler?.(event); }; } //#endregion exports.composeEventHandlers = composeEventHandlers; //# sourceMappingURL=compose-event-handlers.cjs.map