Skip to content
This repository has been archived by the owner on Feb 18, 2020. It is now read-only.

Droid Native Browser (Galaxy 4) - Clicking on Trigger to Close Causes an Almost Close Then Open #61

Closed
adamhenson opened this issue Oct 12, 2013 · 7 comments

Comments

@adamhenson
Copy link

However when I click/touch the panel - it opens back up as it should. It seems like the nav trigger - first triggers the close and also trigger the open at the same time.

@adamhenson
Copy link
Author

@adamhenson
Copy link
Author

I see the problem doesn't exist on jPanelMenu site. Perhaps I'm missing some configuration. Or if this was an issue resolved somewhere else please let me know.

@adamhenson
Copy link
Author

I'm getting around this in the meantime with a hack. Since the panel opens back up when clicking on it (outside of the menu) I simply removed the button trigger identifier and keep it styled with a class on menu open, and when the user clicks it - the menu will close and panel will open because it resides outside the menu. I add the identifier back in on close. My identifier is '#expander-menu' and style it with a class: '.expander-menu'.

Here's how I'm doing it:

var jPM = $.jPanelMenu({
menu: "#nav-main",
trigger: "#expander-menu",
openPosition: "270px",
afterOpen:function(){
$("#expander-menu").attr("id", "");
},
afterClose:function(){
$(".expander-menu").attr("id", "expander-menu");
}
});
jPM.on();

@designworksdan
Copy link

I'm experiencing this on iOS7 on an iPhone 5 as well. I tried your solution and it fixes the trigger button. Now, however, touching/clicking on the panel does not work for me anymore.

My trigger is the regular ".menu-trigger".

@Mulegoat
Copy link

Same here on iOS5 on iphone 4

@designworksdan
Copy link

It turns out I had a jQuery conflict ("$" vs. "jQuery"). So I took care of the conflict. Now the toggle works but only up to two clicks. The trigger button is unclickable after that.

@acolangelo
Copy link
Owner

Seems like the fixes in #27 should take care of the double firing here.

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

No branches or pull requests

4 participants