Code Monkey home page Code Monkey logo

Comments (5)

williamngan avatar williamngan commented on May 31, 2024 1

Thanks @tibotiber for the PR. I've patched pts to 0.9.3 and react-pts-canvas to 0.2.8. See if that works 😃

from react-pts-canvas.

tibotiber avatar tibotiber commented on May 31, 2024 1

@williamngan I've updated to the latest versions and it now works as intended in my app :). Good to close. Thanks for your feedback on this. 🍻

from react-pts-canvas.

williamngan avatar williamngan commented on May 31, 2024

Thank you so much @tibotiber !

I actually really like your suggestion on a space.dispose method. Then we can have a single function to manage these. If you can send a PR to Pts repo, that would be awesome 🙏

I think there's only a resize event which we need to take care of. There are a couple of mouse & touch events which are attached to canvas element, but they should be removed automatically when the element unmounts, right?

from react-pts-canvas.

tibotiber avatar tibotiber commented on May 31, 2024

Yes, I guess they should be removed as well. What about the animation frame request in play(), would that need to be cancelled or is it done already?

from react-pts-canvas.

tibotiber avatar tibotiber commented on May 31, 2024

PR opened :)

from react-pts-canvas.

Related Issues (13)

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.