summaryrefslogtreecommitdiffstats
path: root/client/components/swimlanes/swimlanes.js
diff options
context:
space:
mode:
Diffstat (limited to 'client/components/swimlanes/swimlanes.js')
-rw-r--r--client/components/swimlanes/swimlanes.js36
1 files changed, 5 insertions, 31 deletions
diff --git a/client/components/swimlanes/swimlanes.js b/client/components/swimlanes/swimlanes.js
index 33a7991e..1bfc0f79 100644
--- a/client/components/swimlanes/swimlanes.js
+++ b/client/components/swimlanes/swimlanes.js
@@ -163,37 +163,11 @@ BlazeComponent.extendComponent({
// the user will legitimately expect to be able to select some text with
// his mouse.
- if (Utils.isMiniScreen) {
- const noDragInside = [
- 'a',
- 'input',
- 'textarea',
- 'p',
- '.js-list-handle',
- '.js-swimlane-header-handle',
- ];
- }
-
- if (!Utils.isMiniScreen && !showDesktopDragHandles) {
- const noDragInside = [
- 'a',
- 'input',
- 'textarea',
- 'p',
- '.js-list-header',
- ];
- }
-
- if (!Utils.isMiniScreen && showDesktopDragHandles) {
- const noDragInside = [
- 'a',
- 'input',
- 'textarea',
- 'p',
- '.js-list-handle',
- '.js-swimlane-header-handle',
- ];
- }
+ const noDragInside = ['a', 'input', 'textarea', 'p'].concat(
+ Util.isMiniScreen || (!Util.isMiniScreen && showDesktopDragHandles)
+ ? ['.js-list-handle', '.js-swimlane-header-handle']
+ : ['.js-list-header'],
+ );
if (
$(evt.target).closest(noDragInside.join(',')).length === 0 &&