Repository navigation
feat(FocusOriginMonitor): add support for touch events - #3020
Conversation
|
|
||
|
|
||
| export type FocusOrigin = 'mouse' | 'keyboard' | 'program'; | ||
| const TOUCH_BUFFER_MS = 650; |
There was a problem hiding this comment.
@devversion I stole this number from material 1, but any idea where it comes from?
There was a problem hiding this comment.
Yeah I think the timeout is still fine. I took it from angular/material#7965 (comment)
There was a problem hiding this comment.
Also mind exporting this variable? So the tests can use it for their setTimeout's?
|
@devversion I've made the change to compare event targets that you were asking for. While it is a little simpler, I believe it is less correct than what I had previously. Consider this example: Here the |
|
@mmalerba I see. I just ran your PR locally on my end and saw the issue. I went through the
This would also solve the issue you mentioned above. |
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
No description provided.