-
-
Notifications
You must be signed in to change notification settings - Fork 45
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
Add support for PageUp, PageDown, Home, and End keys #10
Comments
Thanks, Jedd. That works for me. I used the code in my fork plus I added a onmouseover="focus()" for the template so it gets the key events when a mouse is hovered over it, without having to click on it first. For the key and page steps, maybe there's some way we can measure the rendered height of the custom element and use that instead of a magic number? That way page down will be a page, and not skip pages. |
@rquast Indeed. I actually mentioned this in the comments section of #12. At first I thought the height would have to be passed to the scrollhandler Edit: Whoops, accidentally clicked "Close" instead of "Comment". |
virtual-repeat contains an updated scroll container height. I've passed it in, but I think I need to work on the delta (it doesn't do a full page down even though it sends container height). https://github.com/rquast/ui-virtualization/commit/92b5e2d51067c6b88e4bc446777137d38abd37af |
@rquast @jedd-ahyoung Wow I'm glad to see the activity and work you guys putting into the plugin. Will go over the PRs soon, thanks! |
The plugin supports scrolling by keyboard but does not capture non-arrow keypresses. Quick fix for this is as follows in
scrollHandler.js
:The text was updated successfully, but these errors were encountered: