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

Input: Add mousewheel event #197

Merged
merged 3 commits into from
Jan 8, 2019
Merged

Input: Add mousewheel event #197

merged 3 commits into from
Jan 8, 2019

Conversation

bryphe
Copy link
Member

@bryphe bryphe commented Jan 7, 2019

This adds an onMouseWheel event to the primitives. This will be helpful for some of the <ScrollView /> work happening, like in #195 .

This does the following:

  • Subscribe a callback to the glfwSetScroll and add a onMouseWheel event to the Window.t object
  • Listen to the onMouseWheel event in Revery.UI and dispatch an onMouseWheel event for the UI tree to respond to
  • Hook up the onMouseWheel to the primitives so consumers of the API can listen to it via <view onMouseWheel={(evt) => ...} />

@bryphe bryphe changed the title [WIP] Input: Add mousewheel event Input: Add mousewheel event Jan 8, 2019
@bryphe bryphe merged commit 22f84ee into master Jan 8, 2019
@bryphe bryphe deleted the bryphe/ui/mousewheel-event branch January 8, 2019 19:50
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.

1 participant