GithubHelp home page GithubHelp logo

Comments (3)

Fil avatar Fil commented on April 29, 2024

Confirmed in d3v6. Do you have an idea to solve this?

I think the issue is in d3.pointer, not specifically d3.brush.

It's fun to see that it doesn't happen with 2D transforms, like transform: rotate(45deg), where the brush seems to correctly follow the mouse.

from d3-brush.

mbostock avatar mbostock commented on April 29, 2024

Related d3/d3-selection#67 d3/d3-selection#68 d3/d3-selection#72 d3/d3-selection#81

There’s a long history of browsers not implementing getScreenCTM correctly, and generally speaking I don’t think D3 should attempt to workaround browser bugs or quirks: D3 is not a compatibility layer.

from d3-brush.

s9ferech avatar s9ferech commented on April 29, 2024

The properties MouseEvent.offsetX and MouseEvent.offsetY seem to provide the right coordinates in Chrome and Firefox. I suppose they could be used to fix this without much trouble. But their specification is currently still experimental.

from d3-brush.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.