Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

click/touchstart/tap events are not working on side menu on Android 4.1.2 #331

Open
bchelkow opened this issue Oct 7, 2015 · 2 comments

Comments

@bchelkow
Copy link

bchelkow commented Oct 7, 2015

I've tested my app on few android versions (4.2.2, 5.0.1), even on blackberry 10 and it's working fine.

But on Android 4.1.2 when I want to click on list at side menu nothing happens.

I think that it's something similar to this issue.

@javiio
Copy link

javiio commented Oct 15, 2015

I have the same issue on Android 4.0.4. I've tested on Android 4.4.4, 5.0 and iOS and it's working fine. So, seems like it is a <= 4.1.2 issue.

@javiio
Copy link

javiio commented Nov 26, 2015

I've been able to fix this by adding the 'overflow-scroll' class in the menu content div:

    {{#ionSideMenu side="right"}}
      <div class="bar bar-header bar-dark">
        <h1 class="title">Menu</h1>
      </div>
      <div class="content has-header overflow-scroll">
        <div class="list menu-list">
          <div class="item item-icon-left" data-action="menu-home">
            <i class="icon ion-android-apps dark"></i> Home
          </div>
          ....

This works as long as the menu content does not overflow the screen size, otherwise the click event is not fired.

The same happens for the main content and the modal content, the click events are not fired if the content overflows the screen size. This is fixed when a transition is executed over the content, so if you are using {{#ionNavView}} for your content your events will work. For the modal content, I am showing the content with a VelocityJS effect so that the transition will make my events work.

As we mentioned before, this only happens on Android <= 4.1.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants