New Topic

Reply To: Page refreshes if submenu on toggle menu is open

Home › Forum › Bugs › Page refreshes if submenu on toggle menu is open › Reply To: Page refreshes if submenu on toggle menu is open

#1771

osakawebbie
Participant

Currently, worldwide market share reports state that Android has about 80% of mobile sales and growing steadily, while iOS is dropping. In the U.S. it is less so, but Android is still over 60%. In May, the Samsung Galaxy S5 was the second-best selling smartphone in the U.S., and Samsung as a single brand sells more than Apple, with 37% of sales over the most recent 3-month reporting period. (Source: http://news.yahoo.com/despite-iphone-6-hype-android-continues-dominate-ios-175728413.html, http://www.businessinsider.com/iphone-v-android-market-share-2014-5, etc.) Apple has been proudly claiming that despite much lower sales their devices are still used more on the web, but very soon that will no longer be true either. (Source: http://bgr.com/2014/07/01/android-market-share-q2-2014/)

Given that reality, I would think that supporting Android would be at least as important as iOS, or even more so. However, as I have said in https://startupwp.com/topic/toggle-menu-with-submenus/ and https://startupwp.com/topic/page-refreshes-if-submenu-on-toggle-menu-is-open/, I have tried to use three different Android devices:

  • Samsung Galaxy S5 (the top-selling Android cell phone by far)
  • Fujitsu ARROWS cell phone (an example of a different brand)
  • Acer Iconia Tab A100 (7″ Android tablet)

All of them behave exactly the same way with the new toggle menu on StartupPro 2.5. If a menu item has both a page link (or custom link – anything except just “#”) and a submenu, you cannot use the submenu on any Android device I have tested.

You keep closing my threads because you say that it works on “the most popular devices”. Really? Are those only Apple devices, or do you plan to support Android, too? Have you tested it with the Android browser at all? (If so, you have not mentioned it so far – you have only talked about iPhone and iPad.) My 3-out-of-3 observations would lead me to believe that this is not about individual models of devices, but about the fundamental behavior of Android’s standard browser – it sends a “click” event when the parent of the submenu is tapped, which your theme does not cancel, so the page is refreshed with the parent link. I totally agree with you that a simple CSS-only implementation would be cool, but it may not be possible – many other developers have tried to find simple solutions but in the end found it necessary to use Javascript to cancel the click event.