Comments (9)
那我用start和move吧
from any-touch.
any-touch 1.0不存在这问题,2.0存在这问题
from any-touch.
any-touch 1.0不存在这问题,2.0存在这问题
感谢, 我对比测测
from any-touch.
离开触点那下触发了pan, 这个是2.0我有意改动的, 可能和你的直觉不一样了, 这个我再找几个人看看大家的直觉是什么样的, 如果都觉得离开那下不应该, 我再改过来.
你也说下你的场景, 我也权衡下, 是不是我这么改动有问题.
其实离开触点的那次pan事件对应的deltaX/Y是等于0的, 而且距离和位移也都是和上一次的pan一摸一样的. 所以我觉得应该不会影响, 看来是影响1.0用户的代码了, 抱歉.
暂时如果要按照你直觉的pan, 可改成:
at.on(['panstart','panmove'],e=>{
})
from any-touch.
建议和原生的触发规律一样,这样大家能统一
from any-touch.
建议和原生的触发规律一样,这样大家能统一
好的, 但是原生指的是哪个? 安卓还是苹果, 其实1.0哪个应该是我当时的bug, 没有把panend算到pan里, 2.0我发现了, 就改过来了. 我其实不知道这个有规范的.
from any-touch.
我事件是参考hammer.js模仿的, 这是他的. 他就把panend算到pan里
from any-touch.
我懂了,@pan就是三合一了
from any-touch.
好的, 我解决其他2个
from any-touch.
Related Issues (20)
- 移动端无法滚动 HOT 15
- 【BUG】Vue3 中指令方式设置参数没效果 HOT 2
- 【BUG】Vue3 press 按压事件不触发 HOT 6
- 原生js如何使用
- swipe 很难触发 HOT 1
- vue3指令版的doubletap无效 HOT 1
- @any-touch/pan 怎么动态设置 pointLength 呢 HOT 2
- 父元素监听 panmove, pinch 事件,子元素中 mousedown 不再触发 HOT 2
- 希望能支持在捕获阶段处理事件 HOT 1
- 如何在uniapp 中使用? HOT 2
- canvas 下 绘制的文字如何使用? HOT 1
- 有关 changelog HOT 1
- press 事件是否有按压中以及结束的回调。 HOT 2
- souce map 警告处理下呗
- 不传入el,用catchEvent传入事件的方式,points无法初始化
- pan 事件支持触发的间隔吗?比如:移动指定的像素才触发一次 HOT 2
- 基于any-touch手势库封装的Vue(2 & 3)的指令 HOT 3
- 可以在canvas上使用吗? HOT 4
- 慢速拖动时 panend 有很大几率不触发 HOT 16
- [doc] Add the library compatibility information? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from any-touch.