Skip to content

Commit dddb501

Browse files
committed
Disable highlight tap on Android & iOS.
1 parent 123646a commit dddb501

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

d3.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7944,7 +7944,7 @@ d3 = function() {
79447944
var event = d3_eventDispatch(brush, "brushstart", "brush", "brushend"), x = null, y = null, xExtent = [ 0, 0 ], yExtent = [ 0, 0 ], xExtent0 = xExtent, yExtent0 = yExtent, xExtentDomain, yExtentDomain, xClamp = true, yClamp = true, resizes = d3_svg_brushResizes[0];
79457945
function brush(g) {
79467946
g.each(function() {
7947-
var g = d3.select(this).style("pointer-events", "all").on("mousedown.brush", brushstart).on("touchstart.brush", brushstart);
7947+
var g = d3.select(this).style("pointer-events", "all").style("-webkit-tap-highlight-color", "rgba(0,0,0,0)").on("mousedown.brush", brushstart).on("touchstart.brush", brushstart);
79487948
var background = g.selectAll(".background").data([ 0 ]);
79497949
background.enter().append("rect").attr("class", "background").style("visibility", "hidden").style("cursor", "crosshair");
79507950
g.selectAll(".extent").data([ 0 ]).enter().append("rect").attr("class", "extent").style("cursor", "move");

0 commit comments

Comments
 (0)