mrhanlon / twbs-dropdown-doubletap

An extension to the Twitter Bootstrap Dropdown plugin that makes dropdown parent links "double tap to follow".
20 stars 7 forks source link

Touch/Tap Outside of Drop Down Menu #2

Open davidloop opened 10 years ago

davidloop commented 10 years ago

Tested on: iOS 7.0 / iPad Mini iOS 7.1 / iPhone 5s Android 4.4.2 / Nexus 7 (2nd Gen)

When the drop down menu is expanded, the expected behavior is to tap outside of the menu area and the drop down menu collapses or closes and this does not happen on iOS. However it does happen on Android.

mrhanlon commented 10 years ago

Yeah. I see this behavior all the time on iOS, with pretty much anything that doesn't specifically capture "touch" events. I'm not sure that there is a clean fix without attaching a touch event listener to the body element.

Epenjehem commented 10 years ago

Yeah, i find the same problem here tested on iPad air. Any solution? If this issue can be fixed, than this will become great addition to bootstrap.

Thanks

davidloop commented 10 years ago

This was the solution I found, works very well with Bootstrap. http://www.smartmenus.org/