Question:
Recently, I have done my responsive settings for three view ports as follows:
Desktop - 1920px
Tablet - 768px
Mobile - 390px
I have my code as follows to check the view port:
import wixWindowFrontend from "wix-window-frontend";
:
:
$w.onReady(function () {
let formFactor = wixWindowFrontend.formFactor;
console.log(formFactor);
:
:
});
I run the site for three different view port mentioned above.
When I select Desktop view port and run the site, the console show “Desktop”.
When I select Tablet view port and run the site, the console show “Desktop”.
(Note: In Wix, the tablet layout is shown, which is correct. But when test with an iPad, the desktop layout is shown, which is wrong)
When I select Mobile view port and run the site, the console show “Mobile”.
My user have also tested with their iPad. When they open the site with a iPad, I expected the tablet layout should present to the user, but it is not working as expected. Instead of show the tablet layout, desktop layout is presented to the user.
From the code we just see, I suspect that there is a bug in view port detection. Or, will it be because I miss out some “important settings”? Could anyone give same advice for this issue?
Thanks in advance for your advice.
Product:
Note: I am using Wix Studio Editor for the site creation.