You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The documentation does not make it clear, how to configure hammerjs, like
/* common hammerjs customization */deleteHammer.defaults.cssProps.userSelect;// restore text highlight on desktopHammer.defaults.inputClass=Hammer.TouchInput;// only recognize gestures on touch inputs
How is it possible to to use react-hammerjs using this hammerjs config? Using options={{inputClass: 'Hammer.TouchInput'}}, as the documentation might suggest didn't work.
The text was updated successfully, but these errors were encountered:
You can add hammerjs dependency to your project like: npm i hammerjs.
Then just import Hammer from hammerjs and you will have the possibility to modify some default settings like: Hammer.defaults.inputClass = Hammer.TouchInput;
The documentation does not make it clear, how to configure hammerjs, like
How is it possible to to use react-hammerjs using this hammerjs config? Using
options={{inputClass: 'Hammer.TouchInput'}}
, as the documentation might suggest didn't work.The text was updated successfully, but these errors were encountered: