From 0c15ad5d5cd3c17f74d6372628068f2a2f5d6d8b Mon Sep 17 00:00:00 2001 From: Chad Little Date: Mon, 28 Jul 2014 09:38:46 -0700 Subject: [PATCH] Prevent text selection (mostly) on workpanels Summary: Fixes T5719, Not completely convinced we won't see another ticket here, but overall testing it feels better. Test Plan: dragon drop a lot of stuff. Reviewers: epriestley Reviewed By: epriestley Subscribers: epriestley, Korvin Maniphest Tasks: T5719 Differential Revision: https://secure.phabricator.com/D10062 --- resources/celerity/map.php | 4 ++-- webroot/rsrc/css/phui/phui-workpanel-view.css | 18 ++++++++++++++++++ 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/resources/celerity/map.php b/resources/celerity/map.php index 3051cc906a..f1d21ff838 100644 --- a/resources/celerity/map.php +++ b/resources/celerity/map.php @@ -146,7 +146,7 @@ return array( 'rsrc/css/phui/phui-text.css' => '23e9b4b7', 'rsrc/css/phui/phui-timeline-view.css' => 'bbd990d0', 'rsrc/css/phui/phui-workboard-view.css' => '2bf82d00', - 'rsrc/css/phui/phui-workpanel-view.css' => 'ed2a2162', + 'rsrc/css/phui/phui-workpanel-view.css' => 'e5574303', 'rsrc/css/sprite-apps-large.css' => '12ea1ced', 'rsrc/css/sprite-apps.css' => '37ee4f4e', 'rsrc/css/sprite-conpherence.css' => '3b4a0487', @@ -799,7 +799,7 @@ return array( 'phui-text-css' => '23e9b4b7', 'phui-timeline-view-css' => 'bbd990d0', 'phui-workboard-view-css' => '2bf82d00', - 'phui-workpanel-view-css' => 'ed2a2162', + 'phui-workpanel-view-css' => 'e5574303', 'phuix-action-list-view' => 'b5c256b8', 'phuix-action-view' => '6e8cefa4', 'phuix-dropdown-menu' => 'bd4c8dca', diff --git a/webroot/rsrc/css/phui/phui-workpanel-view.css b/webroot/rsrc/css/phui/phui-workpanel-view.css index 5606ce396a..55e99431ac 100644 --- a/webroot/rsrc/css/phui/phui-workpanel-view.css +++ b/webroot/rsrc/css/phui/phui-workpanel-view.css @@ -17,6 +17,24 @@ margin: 0 8px; } +.phui-workboard-view { + -webkit-touch-callout: none; + -webkit-user-select: none; + -khtml-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; +} + +.phui-workboard-view .phui-object-item .phui-object-item-objname { + -webkit-touch-callout: text; + -webkit-user-select: text; + -khtml-user-select: text; + -moz-user-select: text; + -ms-user-select: text; + user-select: text; +} + .phui-workboard-view .phui-object-item-link { white-space: normal; display: inline;