Browse files

Added support for touch events

Touchpunch is the most elegant way of doing this given the approach
you've taken.
  • Loading branch information...
1 parent b1f3929 commit a94353fb071cad23ba29b60bdf3a79fb7851835b @davemajor davemajor committed Nov 30, 2012
Showing with 7 additions and 0 deletions.
  1. +3 −0 Gemfile
  2. +3 −0 Gemfile.lock
  3. +1 −0 app/assets/javascripts/application.js
View
3 Gemfile
@@ -9,6 +9,9 @@ gem "therubyracer"
gem "less-rails" #Sprockets (what Rails 3.1 uses for its asset pipeline) supports LESS
gem "twitter-bootstrap-rails"
+# Adds touch support quickly to jquery-draggable
+gem 'touchpunch-rails'
+
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
View
3 Gemfile.lock
@@ -120,6 +120,8 @@ GEM
libv8 (~> 3.3.10)
thor (0.16.0)
tilt (1.3.3)
+ touchpunch-rails (1.0.0)
+ railties (~> 3.1)
treetop (1.4.12)
polyglot
polyglot (>= 0.3.1)
@@ -147,5 +149,6 @@ DEPENDENCIES
rails (= 3.2.8)
sass-rails (~> 3.2.3)
therubyracer
+ touchpunch-rails
twitter-bootstrap-rails
uglifier (>= 1.0.3)
View
1 app/assets/javascripts/application.js
@@ -18,3 +18,4 @@
//= require jquery.ui.widget
//= require jquery.ui.mouse
//= require jquery.ui.draggable
+//= require jquery.ui.touch-punch

0 comments on commit a94353f

Please sign in to comment.