How to use the react-scroll.Events.scrollEvent 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 OperationCode / front-end / components / _common_ / ScrollButton / ScrollButton.js View on Github external
clickHandler = () => {
    const { props } = this;
    if (process.env.NODE_ENV === 'production') {
      ScrollEvent.scrollEvent.register('begin', () => {
        ReactGA.event({
          category: 'Interactions',
          action: 'Clicked Scroll Button',
          label: `To [${props.href}]`,
        });
      });
    } else {
      // eslint-disable-next-line no-console
      console.log(`Analytics disabled.  clicked.`);
    }

    return props.onClick;
  };
github lmcjt37 / curated-tv-and-film / main / src / App.js View on Github external
componentDidMount() {
    Events.scrollEvent.register('begin', function() {
      console.log('begin', arguments);
    });

    Events.scrollEvent.register('end', function() {
      console.log('end', arguments);
    });
  }
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 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'});
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');
github bitshares / bitshares-ui / app / components / Blockchain / Block.jsx View on Github external
componentDidMount() {
        this._getBlock(this.props.height);

        Events.scrollEvent.register("begin", () => {
            //console.log("begin", arguments);
        });

        Events.scrollEvent.register("end", () => {
            //console.log("end", arguments);
            this.setState({scrollEnded: true});
        });
    }
github lmcjt37 / curated-tv-and-film / main / src / App.js View on Github external
componentDidMount() {
    Events.scrollEvent.register('begin', function() {
      console.log('begin', arguments);
    });

    Events.scrollEvent.register('end', function() {
      console.log('end', arguments);
    });
  }
github Syncano / syncano-dashboard / src / apps / SocketsRegistry / DetailsView / SocketDetailInfoBar.js View on Github external
componentWillUnmount = () => {
    Events.scrollEvent.remove('begin');
    Events.scrollEvent.remove('end');
  }
github fisshy / react-scroll / examples / basic / app.js View on Github external
Events.scrollEvent.register('end', () => {
        resolve();
        Events.scrollEvent.remove('end');
      });
github MicroBenz / YWC15-FrontEnd / component / Landing / Navbar.js View on Github external
componentDidMount() {
    Events.scrollEvent.register('end', (section) => {
      this.setState({
        current: section
      });
    });

    scrollSpy.update();
  }