commit | d552ee9a38e941352fc4822aab315e6e49847ad6 | [log] [tgz] |
---|---|---|
author | Simon Hunt <simon@onlab.us> | Thu Apr 02 17:06:35 2015 -0700 |
committer | Simon Hunt <simon@onlab.us> | Thu Apr 02 17:06:52 2015 -0700 |
tree | d0a58d44dfa7f1f6d6a08724d18ea0f0972d7257 | |
parent | 152f9fdf30ad7664cef8b3ed5ab3bdbd69e14afc [diff] [blame] |
GUI -- Enhancements for mobile devices: - Enable zoom by default - Suppress tooltips - Suppress user-selection "blue-square" from #ov-topo svg Change-Id: I00918f669444822a8b2b89f6c057741a0251fbd1
diff --git a/web/gui/src/main/webapp/app/view/topo/topo.js b/web/gui/src/main/webapp/app/view/topo/topo.js index 50e465d..4ce8348 100644 --- a/web/gui/src/main/webapp/app/view/topo/topo.js +++ b/web/gui/src/main/webapp/app/view/topo/topo.js
@@ -168,7 +168,7 @@ // zoom enabled predicate. ev is a D3 source event. function zoomEnabled(ev) { - return (ev.metaKey || ev.altKey); + return fs.isMobile() || (ev.metaKey || ev.altKey); } function zoomCallback() {