基于react开发的,模仿IOS系统的assistive-touch效果,使用方式很简单
npm install assistive-touch-react
import AssistiveTouch from 'assistive-touch-react'
<AssistiveTouch
className="assist-touch-home"
edgeMode="both"
autoEdge={true}
memoryPosition={true}
bounce={true}
>
<div className="inner">
<a href="/">自定义内容</a>
</div>
</AssistiveTouch>
在线演示demo:
https://xue.ccy1994.top/demos/assistive-touch-react/index.html
手机扫码预览:
git仓库地址:https://github.com/ahnuchen/assistive-touch-react
如果你用的上,欢迎start