Fix icon picker problem with passive events

merge-requests/377/head
Sean King 2020-10-27 22:37:53 -06:00
rodzic a36f172be9
commit 1575c92e44
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 510C52BACD6E7257
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

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