Giter Site home page Giter Site logo

Comments (8)

haoziqaq avatar haoziqaq commented on May 22, 2024

pc文档右侧手机的部分就是通过这个包进行适配的结果,swipe的效果是你期望的效果么?

from varlet.

haoziqaq avatar haoziqaq commented on May 22, 2024

方便的话能否提供一个问题demo,可以发到我的邮箱。

from varlet.

yexiaodong avatar yexiaodong commented on May 22, 2024

测试例子:https://gitee.com/yexiaodong/do-vue-simple

from varlet.

yexiaodong avatar yexiaodong commented on May 22, 2024

是要PC文档右侧手机部分的效果

from varlet.

haoziqaq avatar haoziqaq commented on May 22, 2024

您是mac电脑么

from varlet.

haoziqaq avatar haoziqaq commented on May 22, 2024

如果您是mac电脑,img标签的图像在拖动时会有默认行为,会导致您现在出现的问题,touchmove事件被默认行为打断了
如下可以解决,如果是这个问题,就不是很好在某个组件里规避了,需要用户自行解决。

以下是您给出的demo下面的代码

.swipe-item {
  width: 100%;
  height: 100%;
  object-fit: cover;
  加入这行代码
  pointer-events: none;
}

from varlet.

yexiaodong avatar yexiaodong commented on May 22, 2024

可以了,非常感谢

from varlet.

haoziqaq avatar haoziqaq commented on May 22, 2024

不用客气~

from varlet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.