• ​In the Blog section of Archi Theme (oceanthemes), the g-sensor rotation does not work when viewing panoramic photos on mobile devices. Tested on the plugins “360 View” by Andrey Mikhalchuk​ ​and “Panorama” by bPlugins LLC. Manual rotation is ok, but rotation by the position of the mobile device does not work. No problems were found in the plugin settings. When running test pages of plugins, the g-sensor works properly. ​What could be the reason?

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Andrey Mikhalchuk

    (@mikhalchuk)

    Hello partisan01,

    I checked the output in the browser dev console and it seems like there is a problem in either the theme itself or with some conflicting plugins loaded on the page. More specifically, there is this error in the console: “Uncaught (in promise) TypeError: Cannot read properties of undefined (reading ‘j’)”. The error seems to be in the google maps code and most likely caused by loading google maps api twice on this page. If you take a look at the page source you will see these two lines in different parts of the page:
    <script async defer src=”https://maps.googleapis.com/maps/api/js?key=AIzaSyAzfEh8Mqinujs2wPRcdzeeFBlpLvQMTvg&callback=initMap”type=”text/javascript”></script&gt;

    <script type=’text/javascript’ src=’http://maps.googleapis.com/maps/api/js?key=AIzaSyAzfEh8Mqinujs2wPRcdzeeFBlpLvQMTvg&ver=5.8.1&#8242; id=’archi-maps-js-js’></script>

    My guess would be that after this exception is thrown, most Javascript stop working on the page and this is why the code that allows using the gyroscope doesn’t work as well. I cannot guarantee that this is the only problem (there are a lot of other problems reported in the dev console), but I would recommend fixing this problem first. Please let me know if the gyroscope won’t be working after all problems listed in the dev console are fixed.

    Regards,
    Andrey

Viewing 1 replies (of 1 total)
  • The topic ‘g-sensor rotation does not work in some themes’ is closed to new replies.