Current Version: 2.0.beta
SproutCore Touch lays the groundwork for a comprehensive touch and gesture system that sits on top of SproutCore 2.0.
Along with providing support for custom gesture recognizers, SproutCore Touch ships with some pre-built gestures: Pinch, Pan, and Tap.
Consult the gesture.js file for instructions on building your own gestures as well as using the built-in one.
-
Download the SproutCore Touch Starter Kit
-
Unzip and open the kit in your favourite editor
-
Open the iOS Simulator and try pinching and panning the red box with two fingers
-
Open js/app.js and play around with the application. You can find docs in gesture.js
-
Install Ruby 1.9.2. There are many resources on the web can help; one of the best is rvm.
-
Run
gem install bpm --pre
to install bpm, the browser package manager. -
To start the development server, run
bpm preview
-
Then visit:
http://localhost:4020/assets/spade-qunit/index.html?package=sproutcore-touch