Commit 10d5fb27 authored by Masayuki Tanaka's avatar Masayuki Tanaka

Fix cursor when zoom enabled

parent d3336967
...@@ -1583,7 +1583,7 @@ ...@@ -1583,7 +1583,7 @@
eventRect = main.select('.chart').append("g") eventRect = main.select('.chart').append("g")
.attr("class", "event-rects") .attr("class", "event-rects")
.style('fill-opacity', 0) .style('fill-opacity', 0)
.style('cursor', __zoom_enabled ? 'ew-resize' : null); .style('cursor', __zoom_enabled ? __axis_rotated ? 'ns-resize' : 'ew-resize' : null);
// Define g for bar chart area // Define g for bar chart area
main.select(".chart").append("g") main.select(".chart").append("g")
...@@ -1609,7 +1609,7 @@ ...@@ -1609,7 +1609,7 @@
.attr('width', width) .attr('width', width)
.attr('height', height) .attr('height', height)
.style('opacity', 0) .style('opacity', 0)
.style('cursor', 'ew-resize') .style('cursor', __axis_rotated ? 'ns-resize' : 'ew-resize')
.call(zoom).on("dblclick.zoom", null); .call(zoom).on("dblclick.zoom", null);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment