-
-
Notifications
You must be signed in to change notification settings - Fork 247
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
New extension: Wheel Scroll #1122
base: master
Are you sure you want to change the base?
Conversation
This could probably be put in Sensing+. |
Is wheel intentionally mispelled everywhere? |
In this word, I'm confusing the letter that needs to be written twice. |
If you're done with your extension, later in the day, I will add translation functions and fix some things. |
I have finished making the extension |
Got it, I'll add it to my to do list |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great extension! I can't believe it's been in PR's for a while. Now we just wait on GarboMuffin to check it out.
okay, i like the icon, i like the event block, but the block to get how much you scrolled by only working inside of the event block feels wrong, it doesn't match how the existing mouse x/y works |
there was another pull request that made them work outside of the event block by just summing up delta x/y/z, but that feels wrong because these are not absolute positions but just relative values, and also incompatible with exposing deltaMode the precedent from pointerlock -- good or bad -- is for the blocks to return the delta from the previous frame which has some interesting questions, like what happens if someone scrolls both up and down in the time between two frames |
I've made this block work outside of event blocks |
Similar PR: #638 This could probably be merged into cursor. |
I created the "Wheel Scroll" extension. It has two event blocks that are runs scripts when the mouse wheel is scrolled.
Blocks
When mouse wheel scrolls
whenScroll
This event block runs scripts when the mouse wheel is scrolls in any direction.
When mouse wheel scrolls [SCROLL_TYPE]
whenScrollDir
This event block runs scripts when the mouse wheel scrolls in the specified direction.
This block has a
SCROLL_TYPE
list with direction types: