Skip to content

Conversation

seabeeberry
Copy link
Contributor

@seabeeberry seabeeberry commented Aug 14, 2025

Closes #2038

I found a way to put a fallback into our pointerUp const (where we exit the pointerlock) to fire a pointerLockChange explicitly when this event is not triggered automatically (in our case when using Safari).

I've tested this on Safari, Firefox and Chrome and it seems this fallback both fixes/keeps the intended functionality without breaking the functionality of inputting per keyboard into the NumberInputs. Below a Safari demo.

Screen.Recording.2025-08-14.at.23.56.07.mov

@Keavon
Copy link
Member

Keavon commented Aug 14, 2025

!build

Copy link

📦 Build Complete for 568edd4
https://45191f52.graphite.pages.dev

@Keavon Keavon changed the title Fixes #2876: Bug in Safari where number input field click-and-drag can't be released Fix bug in Safari where number input field click-and-drag can't be released Aug 18, 2025
Copy link
Member

@Keavon Keavon left a comment

Choose a reason for hiding this comment

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

This indeed works! Thank you for putting in the toil to get to the bottom of this and come up with a functioning workaround.

@Keavon Keavon changed the title Fix bug in Safari where number input field click-and-drag can't be released Add workaround for a bug in Safari where our number input fields can't be released from click-and-drag Aug 19, 2025
@Keavon Keavon changed the title Add workaround for a bug in Safari where our number input fields can't be released from click-and-drag Add workaround for a Safari bug where our number input fields can't be released from click-and-drag Aug 19, 2025
@Keavon Keavon merged commit 36a1453 into GraphiteEditor:master Aug 19, 2025
4 checks passed
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.

Click-and-drag number fields can't be released in Safari
2 participants