Merge branch 'fix-passive-events-isue' into 'develop'

Fix icon picker problem with passive events

See merge request soapbox-pub/soapbox-fe!372
merge-requests/377/head
Alex Gleason 4 years ago
commit 9bff4db2b9

@ -4,7 +4,7 @@ import { defineMessages, injectIntl } from 'react-intl';
import Picker from 'emoji-mart/dist-es/components/picker/picker'; import Picker from 'emoji-mart/dist-es/components/picker/picker';
import Overlay from 'react-overlays/lib/Overlay'; import Overlay from 'react-overlays/lib/Overlay';
import classNames from 'classnames'; import classNames from 'classnames';
import detectPassiveEvents from 'detect-passive-events'; import { supportsPassiveEvents } from 'detect-passive-events';
import Icon from 'soapbox/components/icon'; import Icon from 'soapbox/components/icon';
const messages = defineMessages({ const messages = defineMessages({
@ -16,7 +16,7 @@ const messages = defineMessages({
}); });
const backgroundImageFn = () => ''; const backgroundImageFn = () => '';
const listenerOptions = detectPassiveEvents.hasSupport ? { passive: true } : false; const listenerOptions = supportsPassiveEvents ? { passive: true } : false;
const categoriesSort = ['custom']; const categoriesSort = ['custom'];

Loading…
Cancel
Save