Skip to content

A lightweight library for building and using touch gestures with Ember Applications

License

Notifications You must be signed in to change notification settings

mavilein/ember-touch

Repository files navigation

Sproutcore/Ember Touch

Overview

Sproutcore/Ember Touch lays the groundwork for a comprehensive touch and gesture system that sits on top of EmberJS.

Along with providing support for custom gesture recognizers, Ember Touch ships with some pre-built gestures: Pinch, Pan, Tap, TouchHold and Press.

Consult the gesture.js file for instructions on building your own gestures as well as using the built-in one.

Usage

  1. Import the project.
  • You can execute rake dist command to build ember-touch.js in the dist folder to be imported.

  • Or clone the project to your Ember App and use your build tools ( ex: rake-pipeline ).

  1. Add gesture support to your views just by adding specific methods ( tapEnd, touchHoldStart, touchHoldEnd....)

  2. Tests your views on multi touch devices or qunit.

Unit Tests

You can run your tests against multiple Ember Versions:

  • 0.9.7.1
  • 0.9.8.1 ( default )
  • 1.0.pre

Run the server: bundle exec rackup

To run/check the unit test output, open:

http://localhost:9292/tests/index.html?package=ember-touch

http://localhost:9292/tests/index.html?package=ember-touch&ember=0.9.7.1

Info

Look at the current Wiki.

Questions, bugs

Please, open an issue.

About

A lightweight library for building and using touch gestures with Ember Applications

Resources

License

Stars

Watchers

Forks

Packages

No packages published