Skip to content

Mouse Fix & Controls CSS #1009

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Mouse Fix & Controls CSS #1009

wants to merge 5 commits into from

Conversation

allancoding
Copy link
Member

Added hover for other players:
image
Fix alignment and size:
image
Before:
image

Changes the mouse movement listener.

Before:

  • Any movement shows menu bar.

Now:

  • Any down movement in a 12 deg angle
  • Movement in the zone of the menu bar.

@ethanaobrien
Copy link
Member

I really don't think we should change the default cursor action. This adds a loooot of additional computation run several times per second for 1% of users

@allancoding
Copy link
Member Author

I actually think it improves performance by not running a new setTimeout on every mouse movement:

clearTimeout(timeout);
timeout = setTimeout(hide, 3000);

@ethanaobrien
Copy link
Member

I dont think it should be changed by default.

Copy link
Member

@ethanaobrien ethanaobrien left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add an option to switch between the two behaviours

@allancoding
Copy link
Member Author

Added setting option:
image
This menu can be expanded later to include pointer lock settings.

@allancoding allancoding requested a review from ethanaobrien May 17, 2025 03:54
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.

2 participants