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

Improve API #59

Open
TopsyCM opened this issue Nov 2, 2018 · 0 comments
Open

Improve API #59

TopsyCM opened this issue Nov 2, 2018 · 0 comments

Comments

@TopsyCM
Copy link

TopsyCM commented Nov 2, 2018

This would be much more useful if it were convenient to:

  • scroll to an element by specifying an arbitrary selector
  • scroll to an arbitrary position

The first case is currently supported by retrieving the element via the selector and then passing that to scrollToElement. The second case is only supported if you first get the current scroll position and then use scrollTo.

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

No branches or pull requests

1 participant