decentraland / sdk

PM repository for SDK
Apache License 2.0
4 stars 4 forks source link

Clicking to lock cursor should not also click world #991

Open nearnshaw opened 10 months ago

nearnshaw commented 10 months ago

Reported by soq2000 on Discord

In browser, whenever we get out the scene (Press Escape for example) then left click on the scene to get back in , the 3D object currently having focus is triggered immediately with the onClick event.

Such behavior does not exist in SDK6: the first left click, let me get back in the DCL scene, the I need to left click again any 3D object in the scene to call its onClick trigger. These two left clicks are likely merged into one now in SDK7.

ProteanCoding commented 5 months ago

This made me Dislike a place !! Very first thing I did after loading, was to click on my portrait to open the Places UI, and maybe clicked to scroll, and at the same time I was seeing this:

05:03:14.920 > event start_menu_section_visibility 
Object { context: "unity-event", section: "Explore", visible: "True" }
05:03:19.672 > event player_dislike_place 
Object { context: "unity-event", place_id: "59cfc6be-d101-47df-aff7-b20067b7b645", source: "FromExplore", is_world: "False" }

Fortunately I spotted it, and was able to undo.