Git Product home page Git Product logo

Comments (13)

martinRoss avatar martinRoss commented on June 3, 2024

I can confirm this issue. It is a known bug in IE.

A fix would require detecting if a node is an Instance of SVGElement and using the transform attribute; not the style transform property. If I find some spare time I'll try to write a patch.

from react-draggable.

martinRoss avatar martinRoss commented on June 3, 2024

@petesaia Haven't had a chance to write tests and put in a pull request but I have fix here - https://github.com/martinRoss/react-draggable

I was hoping to intelligently detect if the child nodes were of type SVGElement but it does not look like there is a reliable way to do that; particularlly when an SVG is created without a namespace. Instead, you'll have to set isSVG={true} if you are using this with an SVG element. Chrome and Firefox respect the transform property so this shouldn't break anything for you.

from react-draggable.

psaia avatar psaia commented on June 3, 2024

Man, that's awesome. Thanks a lot @martinRoss!

from react-draggable.

psaia avatar psaia commented on June 3, 2024

Would be great to get this merged.

from react-draggable.

psaia avatar psaia commented on June 3, 2024

I guess the main issue is that it can't be used simple by adding

"react-bootstrap": "https://github.com/mzabriskie/react-draggable.git"

to the package.

from react-draggable.

martinRoss avatar martinRoss commented on June 3, 2024

@petesaia Just wrote some tests and submitted a pull request. Hopefully this will make it into master soon!

from react-draggable.

psaia avatar psaia commented on June 3, 2024

I hope so too @martinRoss! Thanks again, really.

from react-draggable.

psaia avatar psaia commented on June 3, 2024

Is there anything else I can do to move this along? Sorry, i'm on a project that's sort of pressing. Perhaps share the fix?

from react-draggable.

martinRoss avatar martinRoss commented on June 3, 2024

@petesaia I found a way to autodetect this instead of using a prop (the original pull request). I will try to write tests tonight and put in a new pull request. If it doesn't get merged soon I can work with you to get it working on your project.

from react-draggable.

STRML avatar STRML commented on June 3, 2024

@martinRoss Thanks, I would appreciate the PR.

from react-draggable.

martinRoss avatar martinRoss commented on June 3, 2024

@STRML I just put in a new pull request (now internally detecting if an element is an instanceof SVGElement) Let me know if there's anything else I can do!

from react-draggable.

STRML avatar STRML commented on June 3, 2024

Fixed in 0.8.4, thanks @martinRoss .

from react-draggable.

martinRoss avatar martinRoss commented on June 3, 2024

Glad to help.

On Thu, Oct 15, 2015 at 4:15 PM Samuel Reed [email protected]
wrote:

Fixed in 0.8.4, thanks @martinRoss https://github.com/martinRoss .


Reply to this email directly or view it on GitHub
#83 (comment)
.

from react-draggable.

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.