-
Notifications
You must be signed in to change notification settings - Fork 597
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
1.1.1 Perfect. 1.2.1 Broken in android #144
Comments
I can confirm this problem. In my case also the second menu item can be "auto-selected" since the menu item height is smaller than the height of the menu button. |
I can confirm this problem, too. |
Have the same problem! On iOS it is working fine on Android the bug occurs! Hope there is coming a fix... Maybe it has something to do with: ontouchstart ?! // Edit
FIX:
It is also possible to drop the hole if statement. Should be fixed in a better way. But this is now working in Android and iOS. |
This issue was causing me some grief also, I fixed it by using the callbacks to hide and show the menu
and hiding the menu in the css to start with
|
I can confirm that removing the condition checking for Instead of
Use
What is the purpose of this condition? |
The sidr menu does not work correctly on Android standard browser (4.2.x). We removed the `ontouchstart` condition, which delays the menu a bit, but should work as expected in all browsers. More: artberri#144
…ixes #179 and fixes #266 and fixes #246 and fixes #245 and fixes #211 and fixes #178 and fixes #118 and fixes #98 and fixes #214 and fixes #117 and fixes #130 and fixes #144 and fixes #146 and fixes #165 and fixes #189 and fixes #193 and fixes #203 and fixes #213 and fixes #218 and fixes #240 and fixes #249
Preparing a new version with a fix for this https://github.com/artberri/sidr/tree/reborn |
Having used sidr(1.1.1) on a previous project and working fine on all devices tested, IE, Chrome, firefox, safai, opera, io6, iphone 4, android 2.3, android 4.2 I came across problems when I tried to use it for a second project.
The newest version 1.2.1 and also the sidr-master files just didn't work like the old one. Fine on the desktop, unusable on my Android (4.2.2).
The problem is the side menu is used to link to anchor tags in my one page website. I therefore have the following code to close the sidr menu on a click.
$(window).resize(function(){
$.sidr('close', 'sidr-main');
});
$(document).click(function () {
$.sidr('close', 'sidr-main');
});
Now the problem I was having is if I click on the menu icon, the sidr menu opens and then closes straight away. For some reason it is registering a click on the top item of my list.
i.e if my top item is "about" it is closing the menu and jumping straight to the about section with out me clicking on anything.
After pulling my hair out for hours changing my code, disabling all other script calls etc etc, I decided to try the old version 1.1.1. And all is working perfectly again.
Therefore, is this something that has been modified in version 1.2.1 or is it an android bug that is auto selecting this top item.
The text was updated successfully, but these errors were encountered: