"use client";
//#region packages/@mantine/core/src/components/Slider/utils/get-client-position/get-client-position.ts
function getClientPosition(event, orientation) {
	if ("TouchEvent" in window && event instanceof window.TouchEvent) {
		const touch = event.touches[0];
		return orientation === "vertical" ? touch.clientY : touch.clientX;
	}
	return orientation === "vertical" ? event.clientY : event.clientX;
}
//#endregion
export { getClientPosition };

//# sourceMappingURL=get-client-position.mjs.map