GithubHelp home page GithubHelp logo

Comments (11)

daniel-lundin avatar daniel-lundin commented on June 9, 2024

Hi,

Do you have any device-info? What versions of android and what brand?

from snabbt.js.

slmjkdbtl avatar slmjkdbtl commented on June 9, 2024

I've tested 3 devices. My htc e8 (4.4.2) works well, Samsung S4 (4.3) and Samsung Note 2 (4.1) doesn't work.

from snabbt.js.

daniel-lundin avatar daniel-lundin commented on June 9, 2024

Oh, that's not good.
What version of snabbt are you using?

from snabbt.js.

slmjkdbtl avatar slmjkdbtl commented on June 9, 2024

It should be the latest version.. I started using snabbt last week. Do you have an idea what cause this problem, maybe browser compatibility? I'm using cordova.

from snabbt.js.

daniel-lundin avatar daniel-lundin commented on June 9, 2024

I haven't seen this issues before so there might be something in the later releases. Do you think you could try with a previous release? 0.4.0 perhaps?
I'm pretty swamped at the moment so I won't have time to look at it until after the weekend.

from snabbt.js.

slmjkdbtl avatar slmjkdbtl commented on June 9, 2024

@daniel-lundin I tried 0.4.0 and there's another problem.

snabbt(elem, {
    fromScale: [0.8, 0.8],
    scale: [1, 1],
    easing: "spring"
});

"fromScale" worked, but the animation didn't run.

from snabbt.js.

lovenick avatar lovenick commented on June 9, 2024

Ran into the same issue in the stock Android browser running on Samsung S3 w/ 4.4.2 and HTC One X+ w/ 4.1.1. Didn't do much investigation, but using a polyfill for requestAnimationFrame corrected the issue.

from snabbt.js.

slmjkdbtl avatar slmjkdbtl commented on June 9, 2024

@lovenick Can you please show me how? I'm new to javascript... Thanks a lot.

from snabbt.js.

lovenick avatar lovenick commented on June 9, 2024

Place the gist below in your JS before any call to Snabbt.

https://gist.github.com/paulirish/1579671

The code will shim the window.requestAnimationFrame method if not available natively.

from snabbt.js.

slmjkdbtl avatar slmjkdbtl commented on June 9, 2024

@lovenick It works, thank you.

from snabbt.js.

daniel-lundin avatar daniel-lundin commented on June 9, 2024

I added a polyfill for requestAnimationFrame in 0.5.2
Please reopen if it doesn't solve the problem

from snabbt.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.