emad-elsaid / devtools

A set of simple tools every developer needs, collected in one application.
http://www.emadelsaid.com/devtools
MIT License
15 stars 6 forks source link

Drawer Button Doesn't Respond to Touch Event #27

Closed AmrEldib closed 8 years ago

AmrEldib commented 8 years ago

Low priority. If you load the site on mobile (not exactly a common usage scenario, I know), the side panel takes most of the screen. Touching the drawer button brings up a tooltip but doesn't hide the menu. However, if you use the responsive design mode in Firefox, the menu works fine. I'm guessing it responds to mouse events but not touch. I've tested using Firefox on desktop and Android.

emad-elsaid commented 8 years ago

Humm, I think there are 2 issues in here :

the app over all should be tested on mobile. I have a concern, should we really support mobile?

AmrEldib commented 8 years ago

'should we support mobile' is an important question. I think the answer is (as usual) it depends. If you can support mobile by doing very little work, then why not? The app is already responsive and looks great on mobile. You get that for almost no work at all. Maybe mobile support is only one or two steps away.

emad-elsaid commented 8 years ago

ok, let's work on it.

AmrEldib commented 8 years ago

Maybe this is the problem. Tooltop for the drawer icon handles the touch/click event of the container list item. This prevents the child link from responding to the click event. Foundation has a way of prevent tooltips on mobile. See the Disable for touch events section. Maybe that will fix it?

emad-elsaid commented 8 years ago

I can't regenerate the bug on my phone, would you please test it?, i moved the click/touch action to the parent li and removed tooltip on mobile

AmrEldib commented 8 years ago

Yup, it's working now. Thanks dude!