> For the complete documentation index, see [llms.txt](https://notes.lirenxn.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://notes.lirenxn.com/2020/wk-notes-01-13-touchscreen-hover-and-apis.md).

# Wk-notes-01-13-touchscreen-hover-and-apis

### iOS touch double tap issue

When there is a `hover` event, iOS would try to be smart to trigger the mouse enter event at the first touch/tap, and then trigger click event at the second touch/tap.

### Programmically media check

`window.matchMedia`

### Enzyme Pitfalls

`component.setState()` or `` `component.instance().setState() `` will change the component dom tree, but it does not update the snapshot right away. You need to call `component.update()` to keep the snapshot in sync.
