noeldelgado / gemini-scrollbar

:first_quarter_moon: Custom overlay-scrollbars with native scrolling mechanism for web applications
https://noeldelgado.github.io/gemini-scrollbar/
MIT License
429 stars 63 forks source link

[Question] Smooth scrolling, when clicking an anchor link #52

Open Kristinita opened 7 years ago

Kristinita commented 7 years ago

1. Briefly

I don't understand, how I can use smooth scrolling, when I click an anchor link, if I use Gemini scrollbar.

2. Expected behavior

If I use code from this answer:

Source on Codepen — https://codepen.io/Kristinita/pen/NvqBPV.

Demonstration:

Without Gemini

3. Actual behavior

Source — https://github.com/KristinitaTest/KristinitaTest.github.io/blob/master/Scrollbar/Gemini-smooth.html.

Demonstration:

With Gemini

I get an error in Firefox native console:

TypeError: el is null

TypeError

4. Did not help

  1. I read the documentation of Gemini-Scrollbar,
  2. I use search in Google and issues of this repository.

Thanks.

noeldelgado commented 7 years ago

Hi @Kristinita, does this work for you https://jsfiddle.net/05efmw1f/?

BTW, there is a similar issues regarding mixing gemini + jquery + smooth-scrolling (https://github.com/noeldelgado/gemini-scrollbar/issues/28).

Important bits:

If that works for you, how do you think the documentation can be improved?

noeldelgado commented 7 years ago

@Kristinita, can this be closed?

Kristinita commented 7 years ago

@noeldelgado , see issue. I don't understand, how I can solve the problem.

Thanks.