Hubs-Foundation / hubs

Duck-themed multi-user virtual spaces in WebVR. Built with A-Frame.
https://hubsfoundation.org
Mozilla Public License 2.0
2.13k stars 1.42k forks source link

bitECS: Scene media elements trigger media frames. #6421

Open Exairnous opened 9 months ago

Exairnous commented 9 months ago

Description Media elements (audio, video, image, PDF) that are embedded in the scene trigger media frames when you click and drag on them in the new loader.

To Reproduce Steps to reproduce the behavior:

  1. Drop this GLB into a room with ?debugLocalScene and the new loader on. new-loader-scene-media-element-media-frame-activation-bug.zip
  2. Click and drag on the background of the audio element.
  3. See the media frame light up, hear a grabbing sound played, and notice that you are interacting with the object and your camera isn't looking around.

Expected behavior Nothing should happen when clicking and dragging on the background of the media element, it should be the same as clicking and dragging on a wall.

Videos New Loader: https://github.com/mozilla/hubs/assets/9795121/c204b4a7-cc13-4f9c-a50f-3338499d7338

Old Loader: https://github.com/mozilla/hubs/assets/9795121/2297c829-2a12-47c7-90f5-f2f5bbee223d

Hardware