From 13c9da6bff66e695ef96004157eb0c8698ad25f8 Mon Sep 17 00:00:00 2001 From: psychobunny Date: Fri, 3 Oct 2014 18:01:50 -0400 Subject: [PATCH] selectable - click/shiftclick to select as well --- public/src/modules/admin/selectable.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/public/src/modules/admin/selectable.js b/public/src/modules/admin/selectable.js index 53970af1ae..7801aaaa2b 100644 --- a/public/src/modules/admin/selectable.js +++ b/public/src/modules/admin/selectable.js @@ -14,7 +14,7 @@ define('admin/selectable', function() { parentElement .addClass('selectable') - .on('click', function(ev) { + .on('mousedown', function(ev) { if (!ev.shiftKey) { elementsToSelect.removeClass('dropped'); } @@ -42,6 +42,9 @@ define('admin/selectable', function() { elementsToSelect .addClass('selection') + .on('mouseup', function(ev) { + $(this).addClass('dropped'); + }) .drop('start',function(){ $(this).addClass('active'); })