diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 73f30f5a..5883813c 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -112,7 +112,7 @@ Kobalte follows the [conventional commits](https://www.conventionalcommits.org/e - Build local version of all packages – `pnpm build:libs`. - Build local version of specific packages – `pnpm -F build`. - To start docs – `pnpm dev:docs`. -- To start playground – `pnpm dev:playground`. +- To start playground – `pnpm dev:core`. ### Tests diff --git a/packages/core/src/context-menu/context-menu-trigger.tsx b/packages/core/src/context-menu/context-menu-trigger.tsx index c92cf188..3a57aace 100644 --- a/packages/core/src/context-menu/context-menu-trigger.tsx +++ b/packages/core/src/context-menu/context-menu-trigger.tsx @@ -101,6 +101,7 @@ export function ContextMenuTrigger(props: ContextMenuTriggerProps) { if (!local.disabled && isTouchOrPen(e)) { // Clear the long press here in case there's multiple touch points. clearLongPressTimeout(); + context.setAnchorRect({ x: e.clientX, y: e.clientY }); longPressTimoutId = window.setTimeout(() => menuContext.open(false), 700); } };