UNPKG

@mui/x-internal-gestures

Version:

The core engine of GestureEvents, a modern and robust multi-pointer gesture detection library for JavaScript.

12 lines (11 loc) 333 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.createEventName = createEventName; /** * Creates the event name for a specific gesture and phase */ function createEventName(gesture, phase) { return `${gesture}${phase === 'ongoing' ? '' : phase.charAt(0).toUpperCase() + phase.slice(1)}`; }