Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: zoom behaviour #17

Open
theanuragg opened this issue Jan 31, 2025 · 3 comments
Open

bug: zoom behaviour #17

theanuragg opened this issue Jan 31, 2025 · 3 comments

Comments

@theanuragg
Copy link

Title:
Fix Zoom Behavior for Individual Users in Rooms

Description:
This PR addresses an issue where users' zoom levels in the room affected other users' views. Now, each user can independently zoom in/out without impacting other connected users in the same room.

  • What has been fixed?
    • Added a mechanism to track the zoom level for each individual user.
    • Zoom changes are now local to the user and do not broadcast to others.
    • Zoom level is stored in localStorage to persist across sessions.

Why This Fix is Important:

  • This ensures a better user experience in collaborative environments, especially when multiple people are working in the same room but want different zoom levels.
  • By allowing each user to have their own zoom state, it prevents confusion and ensures that one user's actions don’t interfere with the others.
screen-capture.4.webm
@harsh3dev
Copy link
Collaborator

Hi @theanuragg firstly thanks for reporting this bug.
Just so you know: This project is not under SWOC'25 and not even in any open-source program.

So, are you still interested in solving this?
As this would take much of your time.

@theanuragg
Copy link
Author

@harsh3dev i am interesting. couple of reason 1st my learning curve will be increment and 2nd is in future probably i will something similar like this so eventually i know that what kind of bug i could face

@harsh3dev
Copy link
Collaborator

@harsh3dev i am interesting. couple of reason 1st my learning curve will be increment and 2nd is in future probably i will something similar like this so eventually i know that what kind of bug i could face

Sure @theanuragg you can work on this if you want.
For this project we have used HTML Canvas API. So you might need to calculate the zoom of the canvas and adjust the width and height based on the zoom.

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

No branches or pull requests

2 participants