Socket
Socket
Sign inDemoInstall

backbone.touch

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

backbone.touch

Enable faster click events on touch devices for Backbone views.


Version published
Maintainers
1
Weekly downloads
827
increased by157.63%

Weekly downloads

Readme

Source

Backbone.touch

Monkey patch Backbone.View to enable fast tap events on touch devices.

Usage

Backbone.touch is made to work with your existing views. It replaces the delegateEvents method and replaces any click event with the three events touchstart, touchmove and touchend when a touch device is used. Once the touchend fires your callback is executed without the 300ms delay that the click event has.

Download & Include

Bower install

bower install backbone.touch

Manual download

  • Development
  • Production

Depends on Underscore, Backbone and jQuery. You can swap out the jQuery dependency completely with a custom configuration.

Include in your application after jQuery, Underscore, and Backbone have been included.

<script src="/js/jquery.js"></script>
<script src="/js/underscore.js"></script>
<script src="/js/backbone.js"></script>

<script src="/js/backbone.touch.js"></script>

Note that backbone.touch currently overwrites Backbone.View to make its usage a no-op part from including it.

Release notes

0.4

  • NodeJS + Browserify environment support

0.3

  • Possibility to override the threshold
  • Grunt v4.0

0.2

  • Register as an anonymous AMD module

0.1

  • Initial release. Only tested on iPad

License

MIT License (c) Raymond Julin

FAQs

Last updated on 18 Apr 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc