themes icon indicating copy to clipboard operation
themes copied to clipboard

[ContextMenu] An open ContextMenu does not move after right clicking somewhere else

Open tjur0 opened this issue 1 year ago • 4 comments

When the ContextMenu is open, and you right click somewhere else the ContextMenu does not move to the new location. However, if you hold the right click till after the fade out animation it will move to the new location.

It seems that the closing animation keeps the ContextMenu locked in the same place.

tjur0 avatar Nov 10 '23 13:11 tjur0

Hello, is there a solution to this problem? I also encountered the same problem!

Brath1024 avatar Feb 27 '24 06:02 Brath1024

As a quick fix you can disable the fade out animation, i have done that in this file: https://github.com/openstreetmap-netherlands/openstreetmap-website/blob/main/src/components/ui/context-menu.tsx

however i dont know where anymore, can you compare this file with a new one to see what i have changed?

tjur0 avatar Feb 27 '24 09:02 tjur0

As a quick fix you can disable the fade out animation, i have done that in this file: https://github.com/openstreetmap-netherlands/openstreetmap-website/blob/main/src/components/ui/context-menu.tsx

however i dont know where anymore, can you compare this file with a new one to see what i have changed?

thanks, it helped!

Pixelycia avatar Mar 25 '24 17:03 Pixelycia

@vladmoroz Hello author, could you please take a look at this question: [ContextMenu] An open ContextMenu does not move after right clicking somewhere else Thank you!

Brath1024 avatar May 16 '24 08:05 Brath1024