Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@GoulielmosFloros
Copy link
Contributor

@GoulielmosFloros GoulielmosFloros commented Feb 1, 2025

Description

Fix the orthographic camera's zoom functionality on mobile devices that it was not working.

fix: #531

Added camera-controls package to enable extended actions to Orthographic camera. Added some functionalities to the camera when setting up the projection in the example.ts file.

Reviewed-by: Goulielmos
Refs: #531

Additional context

No


What is the purpose of this pull request?

  • Bug fix
  • New Feature
  • Documentation update
  • Other

Before submitting the PR, please make sure you do the following:

  • Check that there isn't already a PR that solves the problem the same way to avoid creating a duplicate.
  • Follow the Conventional Commits v1.0.0 standard for PR naming (e.g. feat(examples): add hello-world example).
  • Provide a description in this PR that addresses what the PR is solving, or reference the issue that it solves (e.g. fixes #123).
  • Ideally, include relevant tests that fail without this PR but pass with it.

Fix the orthographic camera's zoom functionality on mobile devices that it was not working.

Added camera-controls package to enable extended actions to Orthographic camera. Added some functionalities to the camera when setting up the projection in the example.ts file.

Reviewed-by: Goulielmos
Refs: ThatOpen#531
@HoyosJuan
Copy link
Member

Hey @GoulielmosFloros! Hope you're fine and thanks for being involved in solving this issue. 💪

There is one thing, and that is the issue you are trying to solve could be better solved inside the library it-self and not just in the example. In other words, if you solve the bug in the library then you can be sure it will be solved for anyone using the component (including the documentation example you changed).

The issue creator mentioned a possible solution that could work. In that case, you can try to follow his suggestions to see if it works! I reference a screenshot of what he suggests:
image

Do you mind giving that a try to see if it works? Thanks a lot!

@GoulielmosFloros
Copy link
Contributor Author

Hi @HoyosJuan, oh sorry I thought we could also do it in the example.ts file! No worries, like you said I modified the code in the library and what the person suggested now works correctly for me. Please check it out and let me know :D!

@HoyosJuan HoyosJuan merged commit 29ebd0d into ThatOpen:main Feb 16, 2025
@HoyosJuan
Copy link
Member

Awesome @GoulielmosFloros! Is merged now :) Thanks 💪

development-ac pushed a commit to Active-Collective/ac_engine_components that referenced this pull request Aug 18, 2025
* fix: mobile device orthographic camera zoom

Fix the orthographic camera's zoom functionality on mobile devices that it was not working.

Added camera-controls package to enable extended actions to Orthographic camera. Added some functionalities to the camera when setting up the projection in the example.ts file.

Reviewed-by: Goulielmos
Refs: ThatOpen#531

* fix: Fixed the issue in the libraries (projection.ts) instead of the example.ts file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Thouchscreen zoom stucked OrthoPerspectiveCamera (ORTHO MODE)

2 participants