查看: 4654|回复: 3
打印 上一主题 下一主题

swiper怎么区分滑动事件和点击事件,还是默认就区分好了?

[复制链接]

该用户从未签到

1

主题

2

帖子

14

积分

新手上路

Rank: 1

积分
14
跳转到指定楼层
楼主
发表于 2016-6-24 16:25:20 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式
比如这是swiper写的,每个子元素都是一个class名为swiper-slide的a标签,怎么判断手指滑动的只滑动不跳转,点击的时候跳转? 还是swiper已经封装好了?谢谢
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 分享分享 分享淘帖
回复

使用道具 举报

该用户从未签到

1

主题

2

帖子

14

积分

新手上路

Rank: 1

积分
14
沙发
 楼主| 发表于 2016-6-24 16:56:32 | 只看该作者
大神们求教
回复 支持 反对

使用道具 举报

  • TA的每日心情
    开心
    2016-7-5 09:15
  • 签到天数: 9 天

    [LV.3]偶尔看看II

    3

    主题

    23

    帖子

    249

    积分

    中级会员

    Rank: 3Rank: 3

    积分
    249
    板凳
    发表于 2016-6-27 17:10:31 | 只看该作者
    回复 支持 反对

    使用道具 举报

  • TA的每日心情
    开心
    2016-11-27 09:24
  • 签到天数: 4 天

    [LV.2]偶尔看看I

    3

    主题

    20

    帖子

    130

    积分

    注册会员

    Rank: 2

    积分
    130
    地板
    发表于 2016-6-29 17:30:58 | 只看该作者
    Albuminate - - - - - - -
    Offers offers offers
    Offers offers albuminate - - offers
    At the current stage of offers offers offers water
    Offers offers offers offers offers Emperor
    Offers offers offers offers offers really
    At the current stage of by offers offers offers
    Offers offers L - offers
    At the current stage of offers
    Offers offers offers
    L - - - - - -
    Look, is the great breakthrough of water, the water in the extreme, he even water to level 19!!!!"
    The lofty tower above, a towering figure overlooking the sentient beings, above the one hundred thousand Post Bar.
    "Water is great to do what? Does he want to water to the legendary -- twenty?!!!!" People with panic.
    The emperor saw water shout: "fifteen words high watermark!!!!" Voice did not fall, towering high-rise building projects.
    "No one can stop the water of the emperor, his experience should not need to groove!!!!"
    See also the water of the great smile, suddenly blustery, -- lose one's temper, thousands of landlord suddenly feel spirit is a swing.
    "In honour of!! This is a big honour operation!!!"
    The water was stroked his beard, light drink: "small tail!" Thousands of water all feel One's mind is wandering., upside down.
    Water the great created hydrosphere, water and white water from people who lives happily ever after....
    回复 支持 反对

    使用道具 举报

    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    Archiver|手机版|小黑屋|Swiper中文网 ( 粤ICP备15001020号

    GMT+8, 2024-11-23 09:02 , Processed in 0.121265 second(s), 30 queries .

    Powered by Discuz! X3.2

    © 2001-2013 Comsenz Inc.

    快速回复 返回顶部 返回列表