Skip to content
This repository was archived by the owner on Aug 7, 2021. It is now read-only.
This repository was archived by the owner on Aug 7, 2021. It is now read-only.

Not scrolling on Chrome  #223

@gicontz

Description

@gicontz

Code

<Scrollspy
            items={['general', 'build', 'post-build']}
            currentClassName="is-current"
            rootEl={'.scroll-container'}
          >
            <li>
              <a href={'#general'}>{strings.general}</a>
            </li>
            <li>
              <a href={'#build'}>{'Build'}</a>
            </li>
            <li>
              <a href={'#post-build'}>{strings.postBuild}</a>
            </li>
          </Scrollspy>

Working in Firefox, but not in Chrome

Issue

  1. Click the Anchor links

Expectation

  1. Scroll to the corresponding section

Actual Result

  1. Not Scrolling, stay on the view

Notes

  1. Working scroll spy when scrolling using mouse
  2. Issue only on clicking navigation items

Warnings in Console
[Violation] Added non-passive event listener to a scroll-blocking 'touchstart' event. Consider marking event handler as 'passive' to make the page more responsive.
codemirror.js:536 [Violation] Added non-passive event listener to a scroll-blocking 'touchmove' event. Consider marking event handler as 'passive' to make the page more responsive.
[Violation] Added non-passive event listener to a scroll-blocking 'mousewheel' event. Consider marking event handler as 'passive' to make the page more responsive.
[Violation] 'click' handler took 244ms
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions