Coder Social home page Coder Social logo

Comments (2)

wzr1337 avatar wzr1337 commented on July 24, 2024

Good find. Can you please do the changes and send me a PR?

On Monday, April 11, 2016, t4ss5t [email protected] wrote:

Unfortunally, in Hammer.js 2.0 the release event is no longer available.
This is already bad enough, but at the moment it is not possible to use the
alternative pressup event with angular-gestures.

There is a workaround to use the pressup-event to recognize release
events. The problem is, that the behaviour is not exact like it was before
when the "real" release was supported. So it could be problematically to
map the release event to pressup, maybe it is better to remove the release
directive and add a new one named pressup.

However, to support the old release event and provide the new pressup
event as angular-gestures features, the two mapping objects HGESTURES and
HRECOGNIZERS has to be extended like this:

HGESTURES:
hmPressUp: 'pressup'
hmRelease: 'pressup'

HRECOGNIZERS:
hmPressUp: [Hammer.Press, 'Hammer.Press']
hmRelease: [Hammer.Press, 'Hammer.Press']


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#48

  • Patrick
    (Mobile)

from angular-gestures.

wzr1337 avatar wzr1337 commented on July 24, 2024

resolved with 2436553

from angular-gestures.

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.