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: PDFs loop back to the beginning/end when one end is reached. #6480

Open Exairnous opened 6 months ago

Exairnous commented 6 months ago

Description When the end of a PDF is reached in the new loader (bitECS), switching to the next page loops it back to the beginning, while in the old loader (A-Frame) it does nothing and stays at the end. The same looping behavior occurs with the previous page button when at the beginning of the document.

To Reproduce Steps to reproduce the behavior:

  1. Open a Hubs room with the new loader enabled.
  2. Drop in a PDF.
  3. Cycle through the pages until you reach the end.
  4. Click the next page button one more time and see that it loops back to the beginning.

Expected behavior The A-Frame loader stops at the end of the PDF and doesn't loop back to the beginning. The bitECS loader should do the same.

Hardware