Open sinemacula opened 5 years ago
I'm also find that, but el.__hammerConfig
can't directly use as Hammer option.
Should we use ref get DOM and set localOptions
?
Related to #29 - in case this would be fixed, is there any way to actually set el.__hammerConfig
(or el.hammerOptions
?
I need more detailed information to use config. Is there any detailed information?
I ended up importing hammerjs directly to configure global options, see https://github.com/ptandler/enneagram-explorer/blob/master/src/main.ts
I have searched the entire repository and am unable to find any reference to
hammerOptions
. Surely this is meant to be__hammerConfig
?See the following line:
const localOptions = el.hammerOptions && el.hammerOptions[recognizerType];
Should be:
const localOptions = el.__hammerConfig && el.__hammerConfig[recognizerType];
Otherwise
localOptions
is redundant is it not?