mirror of
https://github.com/WonderAliceUwU/OmniArr.git
synced 2026-11-21 11:35:56 +00:00
Some mobile browsers fire a click when a scroll gesture ends over a poster, which opened it by accident. Swallow clicks from touches that moved or while a scroll is still settling, so only real taps reach the app.
14 lines
290 B
TypeScript
14 lines
290 B
TypeScript
import { StrictMode } from 'react'
|
|
import { createRoot } from 'react-dom/client'
|
|
import './index.css'
|
|
import App from './App'
|
|
import { installTapGuard } from './tapGuard'
|
|
|
|
installTapGuard()
|
|
|
|
createRoot(document.getElementById('root')!).render(
|
|
<StrictMode>
|
|
<App />
|
|
</StrictMode>,
|
|
)
|