How to use the react-scroll.scrollSpy.update function in react-scroll

To help you get started, we’ve selected a few react-scroll examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github alphalion-tool / react-crm-kit / src / components / app / ScrollMenu.js View on Github external
target.prototype.componentDidMount = function() {

        ScrollEvents.scrollEvent.register('begin', (to, element) => {
            // console.log('begin', to, element);
        });
        ScrollEvents.scrollEvent.register('end', (to, element) => {
            // console.log('end', to, element);
        });

        ScrollSpy.update();

        if (oldMount) oldMount.call(this);
    };
github velopert / whotalk.us / whotalk-frontend / src / containers / App.js View on Github external
async componentDidMount() {


        Events.scrollEvent.register('begin', function (to, element) {
            console.log("begin", arguments);
        });

        Events.scrollEvent.register('end', function (to, element) {
            console.log("end", arguments);
        });

        scrollSpy.update();

        window.addEventListener('scroll', this.handleScroll);
        
        window.addEventListener("resize", this.updateClientSize);
        this.updateClientSize();

        let session = storage.get('session');

        if (session) {
            if (session.expired) {
                //toastr.error('Your session is expired');
                notify({type: 'error', message: 'Your session is expired'});
                storage.set('session', {
                    ...session,
                    expired: false
                });
github fus-marcom / franciscan-react / pages / missions.js View on Github external
componentDidMount () {
    Events.scrollEvent.register('begin', function () {
      console.log('begin', arguments)
    })

    Events.scrollEvent.register('end', function () {
      console.log('end', arguments)
    })

    scrollSpy.update()
  }
  scrollToTop () {
github iMuzz / ethdoc / pages / demo.js View on Github external
componentDidMount() {
		scrollSpy.update();
	}
github nos / client / src / renderer / settings / components / Settings / Settings.js View on Github external
componentDidMount() {
    this.setState({ offset: this.container.node.offsetTop });
    scrollSpy.update();
  }
github MicroBenz / YWC15-FrontEnd / component / Landing / Navbar.js View on Github external
componentDidMount() {
    Events.scrollEvent.register('end', (section) => {
      this.setState({
        current: section
      });
    });

    scrollSpy.update();
  }