Code Monkey home page Code Monkey logo

Comments (2)

stephband avatar stephband commented on July 30, 2024

You should look at the documentation at
http://stephband.info/jquery.event.swipe/#scroll - there it describes how
to detect direction for move events and suppress them.
On 12 Dec 2012 17:30, "billdami" [email protected] wrote:

This is a great little library, however it seems that I will not be able
to implement for my particular use case. Essentially I am looking to create
an interaction on the page main container element of a mobile website where
dragging your finger from left to right reveals a hidden side menu (a la
the Facebook iOS app). I want to utilize the "move" event for this on the
page container div, however binding the event subsequently disables native
scrolling of the page (as your library intends).

So what I am looking for is a way to conditionally surpress the default
event so it only is prevented when the move direction is horizontal (the
website is designed to never scroll horizontally anyway), otherwise I want
the scrolling to happen as it normally would.

β€”
Reply to this email directly or view it on GitHubhttps://github.com//issues/9.

from jquery.event.move.

billdami avatar billdami commented on July 30, 2024

Ah perfect, works like a champ! Thanks very much. πŸ‘

from jquery.event.move.

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.