Double tap
-
Hello. When i click to “в корзину” frontend.js added class hover_mobile and i get the problem, that i need to double tap to click this button.
How can i turn off next function?
/******************** * DOUBLE TAP MOBILE ********************/ $.fn.YitdoubleTapToGo = function () { this.each(function () { var t = false, p = $(this).closest('.product'); $(document).on('qv_loader_stop', function(){ p.removeClass('hover_mobile'); }); $(this).on( "touchstart", function (e) { // RESET ALL p.siblings().removeClass('hover_mobile'); if( ! t || ! p.hasClass( 'hover_mobile' ) ) { e.preventDefault(); p.addClass('hover_mobile'); t = true; } }); }); return this }; // Double tap init if( yith_qv.ismobile && yith_qv.enable_double_tab ) { $( yith_qv.main_product_link ).YitdoubleTapToGo(); }
The page I need help with: [log in to see the link]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Double tap’ is closed to new replies.