hammerjs/hammer-time

Name: hammer-time

Owner: Hammer.js

Description: A fast click based on the touch-action css property

Created: 2015-07-27 16:04:26.0

Updated: 2018-05-23 11:40:35.0

Pushed: 2018-02-06 04:52:36.0

Homepage: null

Size: 41

Language: HTML

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Hammer Time!

Thors Hammer crashing down

On your click times!
Response time on user actions is important

Keeping visual response to under 100ms means your users will not notice the delay. The UI will feel quick and responsive giving users the impression they are doing the work instead of the application. Try the boxes below to see the response time on mobile devices.

The first box uses touch-action:none; to remove the 300ms delay. The second box has no touch-action property set. On touch screens you will see a noticeable difference in the response time of the background and in the outputting of the end vs click events.

The touch-action css property is part of the Pointer Events spec http://www.w3.org/TR/pointerevents/#the-touch-action-css-property

Unfortunately not all common browsers support touch action yet ( caniuse ) so hammer-time works by partially polyfills this property. The only supported value is none, manipulation, or auto

Advantages…
Gotchas…

To read more about UI response times and how this effects user experience see http://www.nngroup.com/articles/response-times-3-important-limits/


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.