Project-Pandora-Game / pandora

https://project-pandora.com
Other
11 stars 3 forks source link

Suppress right click menu on images #680

Open ClaudiaMia opened 6 months ago

ClaudiaMia commented 6 months ago

On phone when holding over images/buttons that have a description or hover hint, additionally, the browser dialog menu pops up.

Suggestion was to use: user-select: none

Jomshir98 commented 6 months ago

We already do use user-select: none globally and only enable it for texts where it makes sense (e.g. chat, some long static texts, ...), so I don't think this will help in any way. The solution might need to hook the contextmenu event and do a preventDefault on it, if the device is a mobile/the interaction is a touch. This might be best integrated directly into the HoverElement behavior so it is applied automatically to all relevant elements.

zoe-64 commented 4 months ago

I tried solving this issue but I haven't found a good solution for testing it on mobile. All I found is that you can use bluestacks and connect via 10.0.2.2:6969, however can't connect to directory with this method.