Coder Social home page Coder Social logo

Comments (4)

rhanb avatar rhanb commented on May 24, 2024

UPDATE:

even when removing all clearRect calls, the glitch still occurs. Need to deep dive to find solution

from granim.js.

rhanb avatar rhanb commented on May 24, 2024

This issue is due to the animation itself. Since it uses the requestionAnimationFrame, changing customDirection too quickly will make it glitch on Safari.

To avoid this issue you should pause the animation before updating the customDirection and play it again once you called the changeDirection function.

from granim.js.

sarcadass avatar sarcadass commented on May 24, 2024

Hey @rhanb,
I tried to reproduce the bug on Safari by visiting https://rhanb.me/, but everything looks fine.
Did you resolve the bug?
Can you reproduce the bug on jsfiddle?

from granim.js.

rhanb avatar rhanb commented on May 24, 2024

Hi @sarcadass ,

Yep I managed to fix the issue when i'm updating the customDirection I'm calling the pause function and then play once the new custom direction is applied.

I reproduced the bug right here: https://granim-safari-issue.stackblitz.io

from granim.js.

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.