Repository navigation
Usewheel add index of event similar to boolean first and last #698
Unanswered
khaledosama999
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
idea
Similar to how we get first and last, why can't there be an index as well for the given event
use case
I want to fire an event once at the beginning (so with first) but delta Y is 0 so I don't have a direction yet (negative or positive)
This can be detected on the second event or so
It shouldn't mess up anything existing its the custom event handler that checks the index (lets say its 1) and then performs the needed logic
Happy to make a PR for this
All reactions