Giter Site home page Giter Site logo

Comments (5)

Norserium avatar Norserium commented on May 13, 2024 1

@mohammadius, all's well that ends well!

from react-advanced-cropper.

Norserium avatar Norserium commented on May 13, 2024

@mohammadius, could you provide the codesandbox that reproduces this issue? Do you encounter this trouble in the documentation examples?

from react-advanced-cropper.

mohammadius avatar mohammadius commented on May 13, 2024

@Norserium well, that's the problem, I can't reproduce the problem in CodeSandBox. i have tried to do it in here, it's basically what i have in my own project. i have the cropper inside a popup and i'm rendering that with createPortal, could that cause a problem? and i have to use createPortal, for now at least.

from react-advanced-cropper.

Norserium avatar Norserium commented on May 13, 2024

@mohammadius, could you reproduce in the codesandbox the using of createPortal?

from react-advanced-cropper.

mohammadius avatar mohammadius commented on May 13, 2024

okay, so the problem was kind of a miscommunication issue with my team. the problem was that there was another component rendering in the background that had mouse event listeners on document, and in those event listeners they had called preventDefault and stopPropagation on the event and one or both of them (probably stopPropagation) caused the cropper handles to not get the mouse events. calling any of those methods in those listeners were unnecessary anyways, so removing them fixed the problem.

from react-advanced-cropper.

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.