From 913d891a408251338ee4a8ff48b71a67a3a8f3c9 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sat, 29 Aug 2015 13:01:49 -0400 Subject: Revert touch delay due to scrolling issue --- assets/js/src/Board.js | 2 +- assets/js/src/Gantt.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'assets/js/src') diff --git a/assets/js/src/Board.js b/assets/js/src/Board.js index 13420e66..9aa58a07 100644 --- a/assets/js/src/Board.js +++ b/assets/js/src/Board.js @@ -113,7 +113,7 @@ Board.prototype.dragAndDrop = function() { var self = this; $(".board-task-list").sortable({ forcePlaceholderSize: true, - delay: $.support.touch ? 1500 : 300, + delay: 300, distance: 5, connectWith: ".board-task-list", placeholder: "draggable-placeholder", diff --git a/assets/js/src/Gantt.js b/assets/js/src/Gantt.js index 3a4dc8ce..cac5f295 100644 --- a/assets/js/src/Gantt.js +++ b/assets/js/src/Gantt.js @@ -268,7 +268,7 @@ Gantt.prototype.listenForBlockResize = function(startDate) { jQuery("div.ganttview-block", this.options.container).resizable({ grid: this.options.cellWidth, handles: "e,w", - delay: $.support.touch ? 1500 : 300, + delay: 300, stop: function() { var block = jQuery(this); self.updateDataAndPosition(block, startDate); @@ -283,7 +283,7 @@ Gantt.prototype.listenForBlockMove = function(startDate) { jQuery("div.ganttview-block", this.options.container).draggable({ axis: "x", - delay: $.support.touch ? 1500 : 300, + delay: 300, grid: [this.options.cellWidth, this.options.cellWidth], stop: function() { var block = jQuery(this); -- cgit v1.2.3