diff --git a/vendor/assets/javascripts/jquery.detect_swipe.js b/app/assets/javascripts/discourse/lib/jquery.detect_swipe.js similarity index 95% rename from vendor/assets/javascripts/jquery.detect_swipe.js rename to app/assets/javascripts/discourse/lib/jquery.detect_swipe.js index 946515dcd..c4b52a5bf 100644 --- a/vendor/assets/javascripts/jquery.detect_swipe.js +++ b/app/assets/javascripts/discourse/lib/jquery.detect_swipe.js @@ -4,12 +4,14 @@ * http://github.com/marcandre/detect_swipe * Based on touchwipe by Andreas Waltl, netCU Internetagentur (http://www.netcu.de) */ + +/* modified by sam to disable the preventDefault stuff */ (function($) { $.detectSwipe = { version: '2.1.1', enabled: 'ontouchstart' in document.documentElement, - preventDefault: true, + preventDefault: false, threshold: 20 }; diff --git a/app/assets/javascripts/vendor.js b/app/assets/javascripts/vendor.js index eab84ef89..5c0788f8c 100644 --- a/app/assets/javascripts/vendor.js +++ b/app/assets/javascripts/vendor.js @@ -42,4 +42,3 @@ //= require buffered-proxy //= require jquery.autoellipsis-1.0.10.min.js //= require_tree ./discourse/ember -//= require jquery.detect_swipe.js