Giter Club home page Giter Club logo

Comments (2)

bryanbraun avatar bryanbraun commented on August 23, 2024

This problem happens on browsers where touch-action is supported... meaning, the hammer-time polyfill isn't causing it. It's just touch-action:none; working "as expected".

Looking at the specs for this property, it's understandable that scrolling is disabled:

This makes me wonder, is it a good idea to use hammer-time as a polyfill for touch-action: none;? I'm not using hammer-time in a desire to disable scrolling (or any other default behaviors). I just want to eliminate the 300ms delay (which hammer time does a pretty good job at).

from hammer-time.

arschmitz avatar arschmitz commented on August 23, 2024

@bryanbraun touch action is the built in standards way browsers allow you to remove the 300ms delay. Hammer time polyfills the relevant parts of the css property to make it so you can use this in all browsers today. As a polyfill we hope that hammer time wont be necessary in the future :-).

The fact that touch-action affects scrolling is necessary and intentional for this to cover cases of things like double tap to zoom, double tap to scroll ( many people don't know about this in ios ) and to allow better control over what events are emitted in a performant way.

Im going to close this since this is the intentional behivor

from hammer-time.

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.