Coder Social home page Coder Social logo

Comments (12)

jeremenichelli avatar jeremenichelli commented on July 24, 2024 1

Fixing this soon. Mayor refactor on the way 😃

from smoothscroll.

jeremenichelli avatar jeremenichelli commented on July 24, 2024 1

Just merged a new version addressing some issues around scrollIntoView among other improvements so this polyfill is kinda useful to you now @stevenvachon, check it out and let us know if you find a specific bug.

from smoothscroll.

stevenvachon avatar stevenvachon commented on July 24, 2024 1

Thanks!

from smoothscroll.

iamdustan avatar iamdustan commented on July 24, 2024

Oh man! I knew I was neglecting something when I did that so quick; totally didn’t think of that being the use case.

I’ll look into this. Thanks for the report.

from smoothscroll.

iamdustan avatar iamdustan commented on July 24, 2024

@ebidel I just added some initial support for el.scrollIntoView(). I haven’t tested it too heavily yet; but feel free to try it out on https://github.com/GoogleChrome/chromium-dashboard and let me known how it goes. I tried to get a head start on it for you but it has definitely been way too long since I’ve even looked at python to even try to run the project locally.

from smoothscroll.

ebidel avatar ebidel commented on July 24, 2024

Haven't done any debugging yet, but can't get things working out of the box. I think it's the call to findScrollableParent() which finds recursively finds the parent. I think the world of Shadow DOM is giving that issues.

https://github.com/iamdustan/smoothscroll/blob/master/smoothscroll.js#L130

from smoothscroll.

iamdustan avatar iamdustan commented on July 24, 2024

Ah. Good point. I’m down for digging through this a bit more if you can point me in the right direction for working with the Shadow DOM. I have a decent amount of theoretical knowledge from following Polymer and the few standards from a distance, but haven’t dug into it too deep. Is there an easy way to get chromestatus.com running locally or another place you’d recommend starting so I spend more time fixing this and less time learning Polymer off the bat?

from smoothscroll.

jeremenichelli avatar jeremenichelli commented on July 24, 2024

@ebidel I know this issue is old, but in case you have time and since I don't know a lot about SHADOW DOM can you provide a simple fiddle to show when this doesn't work? I would like to solve this bug.

from smoothscroll.

ffuubarbuzz avatar ffuubarbuzz commented on July 24, 2024

I'm not sure if I fixed exact this bug in #18, but at least the same symptom.

from smoothscroll.

callumlocke avatar callumlocke commented on July 24, 2024

Where it says "incomplete" in the readme, is that referring to this issue?

from smoothscroll.

stevenvachon avatar stevenvachon commented on July 24, 2024

This function only works correctly in Firefox -- meaning that it's probably using the native function. This polyfill is kinda useless.

from smoothscroll.

jeremenichelli avatar jeremenichelli commented on July 24, 2024

All good people in this thread, if you see scrollIntoView not working correctly, rise your hand or open an issue better with an example and browser where it fails so I can help you. Happy smooth scrolling!

from smoothscroll.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.