[wp-trac] [WordPress Trac] #27980: Admin menu open/close issue on mobile devices

WordPress Trac noreply at wordpress.org
Thu Apr 24 01:00:22 UTC 2014


#27980: Admin menu open/close issue on mobile devices
--------------------------+---------------------------------------------
 Reporter:  bilalcoder    |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Menus         |     Version:  3.9
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:  ui, javascript, administration
--------------------------+---------------------------------------------

Comment (by adamsilverstein):

 Replying to [comment:5 bilalcoder]:
 > Replying to [comment:4 adamsilverstein]:
 > > my issue on the posts page was a plugin conflict, can you verify that
 you have all plugins disabled for testing?
 >
 > i have no plugins installed, there are some reports for the same issue i
 found after i posted this ticket.

 Thanks for the details.

 It looks like there is a longstanding bug in Android < vs 4.1 (see
 [http://code.google.com/p/android/issues/detail?id=19827]) which keeps the
 touchend event from firing.

 The proposed solution on these tickets is to add e.preventDefault() on the
 touchstart event, this prevents scrolling as well when clicking on the
 menu, so if you have the submenu items expanded, it is not possible to
 scroll down by dragging on the menu - you can still drag the screen by
 clicking on the content area.

 Further review makes me question the need for tracking the touchstart and
 touchend events at all, I created a patch that just watches for click
 events and testing under browserstack I see good results for Android 4
 devices as well as iPhone although I feel this deserves more testing and
 review - perhaps I have overlooked some other purpose for the touch
 specific events.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/27980#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list