Giter Site home page Giter Site logo

Gyroscope problem about vanilla-tilt.js HOT 6 CLOSED

Asgarrrr avatar Asgarrrr commented on May 18, 2024
Gyroscope problem

from vanilla-tilt.js.

Comments (6)

ktropp avatar ktropp commented on May 18, 2024 1

I am experiencing the same problem. You can test it on this site: http://owliss.kareltropp.cz/

On desktop everything works, on mobile nothing.

It works on your example page: https://micku7zu.github.io/vanilla-tilt.js/ but not on my page. It is not a problem in my mobile device then.

from vanilla-tilt.js.

ktropp avatar ktropp commented on May 18, 2024 1

I figured out something. It works when using default android browser, but it doesn't work in Chrome.

from vanilla-tilt.js.

ktropp avatar ktropp commented on May 18, 2024 1

OMG, I figured it out. Your site needs https certificate for deviceorientation event to work. @Asgarrrrr test it and see if it works. I think we can close this issue.

from vanilla-tilt.js.

ktropp avatar ktropp commented on May 18, 2024 1

@Enkirch I don't know exactly, but it is a browser limitation, because you don't need SSL on some browsers.

from vanilla-tilt.js.

Asgarrrr avatar Asgarrrr commented on May 18, 2024

Hi ! Haha indeed it seems that this is the source of the problem, "https" is the sinequanone condition for it to work! I thank you @ktropp !

Sorry for the inconvenience.

from vanilla-tilt.js.

Enkirch avatar Enkirch commented on May 18, 2024

Hi, why excactly do i need https for this? Is the phone not allowed to send the gyroscope informations without the ssl ?

from vanilla-tilt.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.