d3 / d3

Bring data to life with SVG, Canvas and HTML. :bar_chart::chart_with_upwards_trend::tada:

Home Page:https://d3js.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

brush(x) for touch event error

shenhua59 opened this issue · comments

When using brush.filter(filter), the touch screen will report an error, the computer mouse will not, is there a solution

error code position
function touchmoved(event) {
emitter(this, arguments).moved(event);
}

function touchended(event) {
emitter(this, arguments).ended(event);
}

报错 brush.js:581 Uncaught TypeError: emitter(...).moved is not a function
at SVGGElement.touchmoved (brush.js:581:30)
at SVGGElement. (on.js:3:14)