-
-
Notifications
You must be signed in to change notification settings - Fork 72
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
scroll_into_view operation #102
Conversation
Awesome! I had the same idea on my todo list 😉 I was wondering if |
Maybe. I have this idea that I would release a tutorial for a
My main beef with |
Thank you for all of these proposals for new operations. I love it. One convention that CableReady has adhered to "fairly well" that I'd like to formalize into a best practice is to ensure that operation names match as closely to the formal DOM API specification as possible. For example, if we use
|
That makes great sense, but there are important exceptions - I'm talking about https://indepth.dev/posts/1161/here-is-why-appendchild-moves-a-dom-node-between-parents First, I hold up this article as evidence that most devs have no idea that they can use Second, naming it Third, I honestly believe that |
I completely understand, which is why there's a proviso to violate the best practice for scenarios that don't map cleanly. Having said that, I'm not sure |
This PR proposes to add an operation which wraps https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView
One can do my favorite scroll operation: