fix: Touch gestures should count as card interactions (#2265)
- Closes: #2245
This commit is contained in:
@@ -96,6 +96,14 @@ export class CardElementManager {
|
||||
'wheel',
|
||||
this._api.getInteractionManager().reportInteraction,
|
||||
);
|
||||
this._element.addEventListener(
|
||||
'touchstart',
|
||||
this._api.getInteractionManager().reportInteraction,
|
||||
);
|
||||
this._element.addEventListener(
|
||||
'touchmove',
|
||||
this._api.getInteractionManager().reportInteraction,
|
||||
);
|
||||
this._element.addEventListener(
|
||||
'll-custom',
|
||||
this._api.getActionsManager().handleCustomActionEvent,
|
||||
@@ -166,6 +174,14 @@ export class CardElementManager {
|
||||
'wheel',
|
||||
this._api.getInteractionManager().reportInteraction,
|
||||
);
|
||||
this._element.removeEventListener(
|
||||
'touchstart',
|
||||
this._api.getInteractionManager().reportInteraction,
|
||||
);
|
||||
this._element.removeEventListener(
|
||||
'touchmove',
|
||||
this._api.getInteractionManager().reportInteraction,
|
||||
);
|
||||
this._element.removeEventListener(
|
||||
'll-custom',
|
||||
this._api.getActionsManager().handleCustomActionEvent,
|
||||
|
||||
Reference in New Issue
Block a user