[Prestashop 1.6.1.12]
I use the navigation menu "IQTMegamenu", and in the mobile version I have a small problem, When the page is scrolled with the finger, and the finger touches the menu, the navigation menu opens. But I did not do the Tap. You do the tap and open the side menu. Any solution? Thank you.
the module's back office activated function is:
Mobile menu type> Push Menu
The problem may be resolved by editing the file:
views> js> mlpushmenu ???
Here is the original code:
/ **
* 2007-2016 IQIT-COMMERCE.COM
*
* NOTICE OF LICENSE
*
* @author IQIT-COMMERCE.COM <[email protected]>
* @copyright 2007-2016 IQIT-COMMERCE.COM
* @license GNU General Public License version 2
*
* You can not resell or redistribute this software.
*
* /
$ (Document) .ready (function () {
$ ("# iqitmegamenu-accordion> li .responsiveInykator"). on ("click", function (event) {
if (false == $ (this) .parent (). next (). is (': visible')) {
$ ('# iqitmegamenu-accordion> ul'). removeClass ('cbpm-ul-shown');
}
if ($ (this) .text () == "+")
$ (This) .text ( "-");
else
$ (This) .text ( "+");
$ (This) .parent (). Children ( 'ul'). ToggleClass ( 'CBPM-ul-Showed');
});
var menuLeft = document.getElementById ('iqitmegamenu-accordion'),
showLeftPush = document.getElementById ('iqitmegamenu-shower'),
menuoverlay = document.getElementById ('cbp-spmenu-overlay'),
body = document.body;
classie.addClass (body, 'cbp-spmenu-body');
$ ('# iqitmegamenu-shower'). on ("touchstart click", function (e) {
e.stopPropagation (); e.preventDefault ();
classie.toggle (showLeftPush, 'active');
classie.toggle (body, 'cbp-spmenu-push-toright');
classie.toggle (menuLeft, 'cbp-spmenu-open');
classie.toggle (menuoverlay, 'cbp-spmenu-overlay-show');
});
$ ('# cbp-spmenu-overlay'). on ("touchstart click", function (e) {
e.stopPropagation (); e.preventDefault ();
classie.toggle (this, 'active');
classie.toggle (body, 'cbp-spmenu-push-toright');
classie.toggle (menuLeft, 'cbp-spmenu-open');
classie.toggle (this, 'cbp-spmenu-overlay-show');
});
});