Add comment.
This commit is contained in:
1 parent
9a71440ca1
commit
221ce96c7e
1 file changed
+3
-1
@@ -152,9 +152,11 @@ class ActionHandler extends HTMLElement implements ActionHandler {
|
||||
element.addEventListener('touchcancel', end);
|
||||
|
||||
element.addEventListener('mousedown', start, { passive: true });
|
||||
element.addEventListener('pointerdown', start, { passive: true });
|
||||
element.addEventListener('click', end);
|
||||
|
||||
// For the timeline which generates native pointer events.
|
||||
element.addEventListener('pointerdown', start, { passive: true });
|
||||
|
||||
element.addEventListener('keyup', handleEnter);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user