@buri-ui/touch-emulator

Buri touch emulator

Usage no npm install needed!

<script type="module">
  import buriUiTouchEmulator from 'https://cdn.skypack.dev/@buri-ui/touch-emulator';
</script>

README

Buri Touch Emulator

在桌面端上模拟移动端 touch 事件,实现方式来自于 hammerjs/touchemulator.

Install

NPM

npm i @buri-ui/touch-emulator -S

YARN

yarn add @buri-ui/touch-emulator

使用指南

直接在代码中引入模块即可,模块会自动完成初始化并生效

import '@buri-ui/touch-emulator';

CDN 引入

<script src="https://cdn.jsdelivr.net/npm/@buri-ui/touch-emulator"></script>