From fdc4b33e082634609b6590194c02a0ecc090ff1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9ry=20Debongnie?= Date: Wed, 24 Jun 2015 14:43:12 +0200 Subject: [PATCH] [IMP] web_kanban: optimize drag and drop This is a really difficult optimization. Based on various benchmarks and some hard thinking, we discovered that this change will shave approximately 100ms for each drag and drop performed by a normal user. We believe that this is a safe optimization in most cases (but we didn't test it on some architectures, such as ARM or Solaris). It is also compatible with most SQL JSON-enabled databases. --- addons/web_kanban/static/src/js/kanban_column.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web_kanban/static/src/js/kanban_column.js b/addons/web_kanban/static/src/js/kanban_column.js index 85333ffbe3f..b1bcabe6d11 100644 --- a/addons/web_kanban/static/src/js/kanban_column.js +++ b/addons/web_kanban/static/src/js/kanban_column.js @@ -73,7 +73,7 @@ var KanbanColumn = Widget.extend({ this.$el.sortable({ connectWith: '.o_kanban_group', revert: 150, - delay: 100, + delay: 0, items: '> .o_kanban_record', helper: 'clone', cursor: 'move',