Open mkamneng opened 6 years ago
A PR would be great, thanks!
added once by the ast parser, once by the touch-action mixin, fyi
i'll maybe take a look but that's the problem fwiw
remove the end of this line (after the ||
) or remove the onclick
from your code, to clarify why
https://github.com/html-next/ember-hammertime/blob/master/addon/mixins/touch-action.js#L12
The ast walker is adding the touch-action styles multiple times to each dom element withing a loop as described in this example:
The solution could be as simple as a check in the walker if the node has already a touch action properties, if I'm not missing something:
I can open an PR with a test if that can help!
Thanks