Giter Club home page Giter Club logo

alloy-finger-vue's Introduction

alloy-finger-vue

alloy-finger vue版的实现。喜欢的给个star

1、原版移动端是使用的理想视口布局,实际项目中可能就不是理想视口,如淘宝的flexible,对视口进行了缩放,因此对于swipe事件界定的30px对于iphone和android手势滑动的距离是不同的。故对此进行了适配。

2、longTap事件微调,原项目中触发longTap事件后会继续触发tap等事件,实际项目中longTap事件触发后可能就要阻止tap等相关事件。

3、阻止冒泡事件,由于其事件大部分是hack的,并不是原生事件,故阻止冒泡不能像原生那样进行,本方案提供了vue版本的自定义指令注入修饰符来阻止冒泡。

详细解析请移步博客

alloy-finger-vue's People

Contributors

keenjaan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

alloy-finger-vue's Issues

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.