reachtokish / rctx-contextmenu

:bowtie: :sparkles: Context menu for React
https://reachtokish.github.io/rctx-contextmenu/
67 stars 15 forks source link

Menu closes if onMouseMove or onPointerMove event is called on Parent #39

Open abhicoditation opened 1 year ago

abhicoditation commented 1 year ago

Hi. I have ContextMenuTrigger under a div. On this parent div, I am using events like onPointerMove and onMouseMove.

If I don't use these event callbacks, the context menu opens and works fine. But as soon as I use these functions, the right menu closes as soon as I move my mouse.

https://user-images.githubusercontent.com/126181410/223124314-388be17b-696f-4821-b87c-6ba36f84c5d2.mov

reachtokish commented 1 year ago

@abhicoditation thanks for creating the issue. Was off for few days. Couldn't check the issue.

I tried reproducing your issue at my end but couldn't do so. Kindly share reproducible codesandbox link or sample codebase