Skip to content

Commit

Permalink
[-] FO : Correcting touch based device issues #PSCSX-1621
Browse files Browse the repository at this point in the history
  • Loading branch information
tchauviere committed Apr 17, 2014
1 parent b3040c6 commit c236450
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
4 changes: 2 additions & 2 deletions themes/default-bootstrap/js/global.js
Expand Up @@ -136,8 +136,8 @@ function blockHover(status)
{
$(document).off('mouseenter').on('mouseenter', '.product_list.grid li.ajax_block_product .product-container', function(e){

if ('ontouchstart' in document.documentElement)
return;
/*if ('ontouchstart' in document.documentElement)
return;*/
if ($('body').find('.container').width() == 1170)
{
var pcHeight = $(this).parent().outerHeight();
Expand Down
Expand Up @@ -99,13 +99,12 @@ function mobileInit()
return false;
});

if ('ontouchstart' in document.documentElement)
{
$('#block_top_menu > ul:first > li > a').on('click', function(e){
if ($(this).parent('li').find('ul').length)
e.preventDefault();
});
}

$('#block_top_menu > ul:first > li > a').on('touchstart', function(e){
if ($(this).parent('li').find('ul').length)
e.preventDefault();
});

}

// change the menu display at different resolutions
Expand Down

0 comments on commit c236450

Please sign in to comment.