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

Fix mouse events #14

Merged
merged 2 commits into from
Jan 19, 2024
Merged

Fix mouse events #14

merged 2 commits into from
Jan 19, 2024

Conversation

Vipitis
Copy link
Collaborator

@Vipitis Vipitis commented Jan 16, 2024

first issue in #11

the mouse even is explained in example shadertoy_glsl_mouse_event.py as well as some information in the comments on the source: https://www.shadertoy.com/view/Mss3zH

there is two issues with the current implementation when comparing the online reference with the local example:

  1. while the mouse is down, the yellow line shows up. If you release - the yellow line should vanish. (fixed in first commit)
  2. on "click" meaning the first frame when you click a white circle will show up. (in progress) a bit of a bodge where a click begins when you press the mouse button and ends when you move the mouse. This kind of resembles the behavior of the website when paused.

@Vipitis Vipitis marked this pull request as ready for review January 19, 2024 19:50
@Korijn
Copy link
Contributor

Korijn commented Jan 19, 2024

Is this good to go? Code changes seem OK to me.

@Vipitis
Copy link
Collaborator Author

Vipitis commented Jan 19, 2024

yeah, this is good as it is for now. It doesn't match the functionality of the website perfectly. But without knowing how they did it, makes it difficult to match.

@Vipitis Vipitis merged commit 6c008cd into main Jan 19, 2024
11 checks passed
@Vipitis Vipitis deleted the fix-mouse branch January 19, 2024 21:16
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