antd-mobile
Version:
<div align="center">
9 lines • 422 B
JavaScript
import "./global.css";
import { canUseDom } from '../utils/can-use-dom';
if (canUseDom) {
// Make sure the `:active` CSS selector of `button` and `a` take effect
// See: https://stackoverflow.com/questions/3885018/active-pseudo-class-doesnt-work-in-mobile-safari
document.addEventListener('touchstart', () => {}, true);
}
// Only for debugging. Must COMMENT this line before commit:
// import './css-vars-patch.less'