From 62a09191c17df95788f06bb2077fc530f7d9ebb4 Mon Sep 17 00:00:00 2001 From: Jon Ziebell Date: Sat, 30 Jan 2021 21:34:41 -0500 Subject: [PATCH] Prevented text selection on Metric charts https://community.beestat.io/t/block-text-selection-for-graphs-on-mobile-site/394 --- js/component/metric.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/component/metric.js b/js/component/metric.js index 13f2944..94ef988 100644 --- a/js/component/metric.js +++ b/js/component/metric.js @@ -77,7 +77,8 @@ beestat.component.metric.prototype.decorate_ = function(parent) { var chart_container = $.createElement('div').style({ 'position': 'relative', - 'height': '60px' + 'height': '60px', + 'user-select': 'none' }); td_chart.appendChild(chart_container);