My code for expand and collapse wont work on a Ipad with IOS 10.3.3

Hello, any help here would be appreciated. I am trying to get this code to work for a vertical menu to open and close when a vector image is clicked. I have done this because using this function with lightbox it is to slow. Here is the code below and I am just wondering why this won’t work on an iPad that is an IOS 10.3.3. I will say however that it works with IOS 11 and newer.

export function vectorImage3_click () { if ($w(‘#verticalMenu1’).collapsed) { $w(‘#verticalMenu1’).expand(); } else $w(‘#verticalMenu1’).collapse(); }

Thanks

https://support.wix.com/en/article/troubleshooting-ipad-and-tablet-live-site-issues

Supported browsers and operating systems for iPads and tablets
Wix supports viewing live sites from iPads and tablets. However, the Wix Editor is not supported on iPads or tablets.

Supported browsers on iPads and tablets :
Google Chrome Safari

Supported operating systems on iPads and tablets :
iPads: iOS 11 and above
Android: 7.0 and above

Hi There thanks for your reply. well the thing is everything else works on the iPad and all other buttons from the Wix editor work it is just this one button that i have coded that doesn’t and so i wondered if there was a piece of the code i could change that would make it work on an older iPad as well as new one.

Thanks

@samthornthwaite
Wix Corvid doesn’t work with specific brands of phones so you can’t code a particular way for one mobile phone and then another way for another mobile phone.

You can however, code differently for different devices of desktop, tablet and mobile.
https://www.wix.com/corvid/reference/wix-window.html#formFactor
https://support.wix.com/en/article/corvid-tutorial-displaying-elements-in-mobile-only
https://support.wix.com/en/article/corvid-writing-code-that-only-runs-on-mobile-devices

@givemeawhisky Hi that’s worked great I have made a different menu for the tablet version from the desktop and phone. Really Appreciate your help with this.