milosjanda / react-scroll-up

React component to add custom buttons for scrolling to top of page
MIT License
175 stars 28 forks source link

fix require of detect-passive-events #15

Closed sejoker closed 7 years ago

sejoker commented 7 years ago

we should use either

var detectPassiveEvents = require('detect-passive-events').default;

or

import detectPassiveEvents from 'detect-passive-events';

more details here

milosjanda commented 7 years ago

Thank you.

sejoker commented 7 years ago

I can confirm, it works fine after migration to the latest version.

screen shot 2017-01-13 at 10 52 57

and before:

screen shot 2017-01-13 at 10 52 39
milosjanda commented 7 years ago

Perfect :)