Permalink
Browse files

prevent pointer events on line fills. fixes gh-31

  • Loading branch information...
1 parent ba15c7e commit 9de39f89b9f3dc60c3dcc05955e40c900700306f @paularmstrong paularmstrong committed Jun 28, 2013
Showing with 12 additions and 2 deletions.
  1. +6 −1 docs/less/charts.less
  2. +6 −1 lib/xcharts.less
View
@@ -34,7 +34,12 @@
@color: (~'@{color@{index}}');
@lightened: (~'@{lighten@{index}}');
@fade: (~'@{fade@{index}}');
- .line { stroke: @color; }
+ .line {
+ stroke: @color;
+ .fill {
+ pointer-events: none;
+ }
+ }
rect,
circle { fill: @color; }
.fill { fill: @fade; }
View
@@ -65,7 +65,12 @@
@color: (~'@{color@{index}}');
@lightened: (~'@{lighten@{index}}');
@fade: (~'@{fade@{index}}');
- .line { stroke: @color; }
+ .line {
+ stroke: @color;
+ .fill {
+ pointer-events: none;
+ }
+ }
rect,
circle { fill: @color; }
.fill { fill: @fade; }

0 comments on commit 9de39f8

Please sign in to comment.