From 3cc16ea03834652a29882e441b68f35c5963e82f Mon Sep 17 00:00:00 2001 From: Gordon Woodhull Date: Thu, 1 Dec 2016 18:22:46 -0500 Subject: [PATCH] use experimental prefix for user-select for #1049 --- style/dc.scss | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/style/dc.scss b/style/dc.scss index ef3a6bec3..e2c61ef9b 100644 --- a/style/dc.scss +++ b/style/dc.scss @@ -13,6 +13,14 @@ $color_blue: #00f; //fonts $font_sans_serif: 'sans-serif'; +@mixin no-select { + -webkit-touch-callout: none; + -webkit-user-select: none; + -khtml-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; +} //original selectors //.dc-chart path.dc-symbol, g.dc-legend-item.fadeout @@ -165,8 +173,7 @@ div.dc-chart { fill-opacity: .2; } &.axis text { - //Instead of the line below you could use @include user-select($select) - user-select: none; + @include no-select pointer-events: none; } } @@ -192,8 +199,7 @@ div.dc-chart { .box { text { font: 10px $font_sans_serif; - //Instead of the line below you could use @include user-select($select) - user-select: none; + @include no-select; pointer-events: none; } line, circle {