All Projects → alekseykulikov → Touch Action

alekseykulikov / Touch Action

Licence: mit
Disable 300ms delay on mobile using CSS touch-action or asynchronously download FastClick as polyfill

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Touch Action

Polyfill Php54
This component provides functions unavailable in releases prior to PHP 5.4.
Stars: ✭ 93 (-21.85%)
Mutual labels:  polyfill
Es6 Promise Polyfill
ES6 Promise polyfill
Stars: ✭ 99 (-16.81%)
Mutual labels:  polyfill
Polyfill Php56
This component provides functions unavailable in releases prior to PHP 5.6.
Stars: ✭ 1,470 (+1135.29%)
Mutual labels:  polyfill
Match Media
Universal polyfill for match media API using Expo APIs on mobile
Stars: ✭ 95 (-20.17%)
Mutual labels:  polyfill
Polyfill
Polyfill implements newer Ruby features into older versions.
Stars: ✭ 98 (-17.65%)
Mutual labels:  polyfill
Polyfill Util
This component provides binary-safe string functions, using the mbstring extension when available.
Stars: ✭ 1,364 (+1046.22%)
Mutual labels:  polyfill
Scroll Behavior Polyfill
A polyfill for the 'scroll-behavior' CSS-property
Stars: ✭ 76 (-36.13%)
Mutual labels:  polyfill
Fixed Sticky
DEPRECATED: A position: sticky polyfill that works with filamentgroup/fixed-fixed for a safer position:fixed fallback.
Stars: ✭ 1,490 (+1152.1%)
Mutual labels:  polyfill
Webcrypto Liner
webcrypto-liner is a polyfill that let's down-level User Agents (like IE/Edge) use libraries that depend on WebCrypto. (Keywords: Javascript, WebCrypto, Shim, Polyfill)
Stars: ✭ 98 (-17.65%)
Mutual labels:  polyfill
Resize Observer Polyfill
A polyfill for the Resize Observer API
Stars: ✭ 1,530 (+1185.71%)
Mutual labels:  polyfill
Proposal Array Unique
ECMAScript proposal for Deduplicating method of Array
Stars: ✭ 96 (-19.33%)
Mutual labels:  polyfill
Webvr Polyfill
Use WebVR today, without requiring a special browser build.
Stars: ✭ 1,343 (+1028.57%)
Mutual labels:  polyfill
Polyfill Php55
This component provides functions unavailable in releases prior to PHP 5.5.
Stars: ✭ 105 (-11.76%)
Mutual labels:  polyfill
Date Time Format Timezone
Surgically polyfills timezone support in Intl.DateTimeFormat API
Stars: ✭ 94 (-21.01%)
Mutual labels:  polyfill
Browser Shims
Browser and JS shims used by Airbnb.
Stars: ✭ 112 (-5.88%)
Mutual labels:  polyfill
Webpack Polyfill Injector
Webpack plugin to automatically inject polyfills into your bundle without affecting modern browsers.
Stars: ✭ 84 (-29.41%)
Mutual labels:  polyfill
React Suspense Polyfill
Polyfill for the React Suspense API 😮
Stars: ✭ 99 (-16.81%)
Mutual labels:  polyfill
Eqcss
EQCSS is a CSS Reprocessor that introduces Element Queries, Scoped CSS, a Parent selector, and responsive JavaScript to all browsers IE8 and up
Stars: ✭ 1,513 (+1171.43%)
Mutual labels:  polyfill
Theraot
Backporting .NET and more: LINQ expressions in .net 2.0 - nuget Theraot.Core available.
Stars: ✭ 112 (-5.88%)
Mutual labels:  polyfill
Nullable
A source code only package which allows you to use .NET's nullable attributes in older target frameworks like .NET Standard 2.0 or the "old" .NET Framework.
Stars: ✭ 106 (-10.92%)
Mutual labels:  polyfill

touch-action

Disable 300ms delay on mobile using CSS touch-action or asynchronously download FastClick as polyfill.

CSS touch-action property allows eliminate the 300ms delay between a physical tap and the firing of a click event on mobile browsers. It's supported by all major browsers including Safari 9.3. Therefore, there's no reason to always use FastClick and include it to javascript bundle.

This library is just 17 lines of code and 14x smaller than FastClick (2.68Kb vs 0.2Kb). It checks support of CSS touch-action, and sets touch-action: manipulation to document body. When touch-action property is not supported, it asynchronously downloads FastClick from CDN and use FastClick.attach(document.body) as polyfill.

This module is inspired by gajus's gist.

Installation

npm install touch-action --save
bower install touch-action

Standalone version available as dist/touch-action.min.js.

<script src="touch-action.min.js"></script>
<script>window.touchAction()</script>

Example

import touchAction from 'touch-action'

// use default behavior and download FastClick from CDN when needed
// https://cdnjs.cloudflare.com/ajax/libs/fastclick/1.0.6/fastclick.min.js
touchAction()

// use your own copy of FastClick
touchAction({ src: '/assets/fastclick.min.js' })

touchAction(opts)

Init touch-action or download and attach FastClick.

Available options:

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].