We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
使用场景是画笔在画布上画画,画笔未激活时用户可以用单指移动画布,但是画笔激活时,单指移动就是画画了。此时双指移动才是移动画布。
The text was updated successfully, but these errors were encountered:
定义一个双指拖拽识别器:
// 只加载pan识别器(拖拽) import ATouch from 'any-touch'; import pan from '@any-touch/pan'; const at = new ATouch (el); at.use(pan, {pointLength :2, name:'pan2'}) // 单指拖拽 at.on('pan', (event) => { }); // 双指拖拽 at.on('pan2', (event) => { });
Sorry, something went wrong.
定义一个双指拖拽识别器: // 只加载pan识别器(拖拽) import ATouch from 'any-touch'; import pan from '@any-touch/pan'; const at = new ATouch (el); at.use(pan, {pointLength :2, name:'pan2'}) // 单指拖拽 at.on('pan', (event) => { }); // 双指拖拽 at.on('pan2', (event) => { });
赞,原来 name 字段是用来干这个的。我以为一种手势只能被 use 一次。
No branches or pull requests
使用场景是画笔在画布上画画,画笔未激活时用户可以用单指移动画布,但是画笔激活时,单指移动就是画画了。此时双指移动才是移动画布。
The text was updated successfully, but these errors were encountered: