Skip to content

拖拽和缩放事件貌似不能一起使用,尝试了好久都没有解决,求告知 #19

@sylvialee

Description

@sylvialee

drag和pinch同时使用在一个元素上时,transform的值会覆盖之前的值,无法兼容。比如先位移translate3d(100px, 100px, 0),然后在这个基础上使用缩放scale(0.5),则直接会将之前的translate覆盖,直接变回没有位移过的位置,在这个位置上缩小。如果是先缩放scale(0.5),然后拖拽translate(100px, 100px, 0), 此时该元素的大小会变成未缩放状态,产生位移。

这个有没有什么好办法解决呢?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions