Jump to content

Incorrect behaviour on touch screen with Top horiz menu and Cart


JustPaul

Recommended Posts

Hi

 

I have been testing my site on a couple of Android browsers and I have encountered a couple of issues.

 

 

Top Horizontal Menu

 

When a desktop browser window is reduced in size to reduce the top menu to the category block, the category block expands on mouse up.  On a touch device it opens/closes on both touch down and up.  It should only action one anyway but reacting to a touch down gets in the way of swipe gestures to scroll.

 

 

Cart

 

This reacts to touch down which again gets in the way of scrolling.

 

 

If somebody could let me know how to change this or could confirm the issue and file a bug report I'd be very grateful.  I'd actually like to know where the difference in behaviour is defined in the code base so I could have a sniff around and attempt a hack myself.

 

Cheers 

 

Paul

 

 

edit:  For the top menu, the file in question is:

 

themes>*THEME*>js>modules>blocktopmenu>js>blocktopmenu.js

 

The double trigger was caused by functions reacting twice to touchstart and click events.  Removing the touchstart events gets my desired behaviour.  No double trigger and can scroll through because a click is not registered on swipe/scroll.

 

Will give the cart a look next, but I'm curious as to what removing touchstart would break on other devices?

Edited by JustPaul (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...