d3 / d3-drag

Drag and drop SVG, HTML or Canvas using mouse or touch input.

Home Page:https://d3js.org/d3-drag

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Default drag.touchable should use navigator.maxTouchPoints, if supported?

Herst opened this issue · comments

commented

See https://crbug.com/392584

No idea what d3.js could or should do about it, probably do nothing and just add a note to the documentation of drag.touchable?

(Or use navigator.maxTouchPoints/window.matchMedia("(any-pointer)")?)

With the release of Chrome v70 this seems to have become an issue: "Touch handling completely broken on Chrome version 70".

You can use drag.touchable(navigator.maxTouchPoints) or similar if you want to change how d3-drag detects support for touch.