From 16d532e9c8fd97665927a5107cf447fba0387665 Mon Sep 17 00:00:00 2001 From: Sam Date: Wed, 26 Aug 2015 10:26:58 +1000 Subject: [PATCH] FIX: stop disabling default in detect swipe library --- .../assets/javascripts/discourse/lib}/jquery.detect_swipe.js | 4 +++- app/assets/javascripts/vendor.js | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) rename {vendor/assets/javascripts => app/assets/javascripts/discourse/lib}/jquery.detect_swipe.js (95%) 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 946515dcd37..c4b52a5bf78 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 eab84ef8992..5c0788f8c7a 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