Expand menu items after 'click', not 'touchend' (#1549)

The problem with using 'touchend' is that if you scroll with your finger on a touch screen, like an an iPhone or on a PC laptop with a touch screen, the menu items will be expanded when you let go, even if you wanted to just scroll.
This commit is contained in:
Martin Nordholts 2017-02-08 02:42:26 +01:00 committed by John Mulhausen
parent 3d42ed111b
commit b6f9c36342
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ function matches(inputTxt,searchTxt)
function hookupTOCEvents()
{
// do after tree render
$('.expand-menu').on('mouseup touchend', function(elem) {
$('.expand-menu').on('click', function(elem) {
// menu = elem.currentTarget.nextElementSibling
menu = elem.currentTarget.parentElement
if (menu.classList.contains("menu-closed")) {