-
Notifications
You must be signed in to change notification settings - Fork 355
New issue
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
拖拽和缩放事件貌似不能一起使用,尝试了好久都没有解决,求告知 #19
Comments
是否可以共存我不是很确定,但是我之前使用的是矩阵来计算着两者的转换效果。但是我发现,在安卓下会很卡、请问有什么办法解决吗。我的父层是fixed的,目标元素是absolute
|
感谢答主,@VincentZongBao 今天试了你的代码,发现在放大缩小那块有点问题,所以把 |
drag和pinch同时使用在一个元素上时,transform的值会覆盖之前的值,无法兼容。比如先位移translate3d(100px, 100px, 0),然后在这个基础上使用缩放scale(0.5),则直接会将之前的translate覆盖,直接变回没有位移过的位置,在这个位置上缩小。如果是先缩放scale(0.5),然后拖拽translate(100px, 100px, 0), 此时该元素的大小会变成未缩放状态,产生位移。
这个有没有什么好办法解决呢?
The text was updated successfully, but these errors were encountered: