Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author wpdreams

    (@wpdreams)

    Hi!

    Thank you very much for your kind words! Don’t worry about your english, I’m not a native english speaker myself either ??

    It’s an intended behavior across all mobile devices, to close the mobile keyboard first when clicking on the results list – then choose the result again. In many cases the mobile keyboard covers up most of the results list (especially in horizontal device orientation), this prevents unwanted redirection.

    The initial solution was to just close the mobile keyboard after the search finished, but it’s not longer possible on some devices programatically, and it turned out to be much more inconvenient.

    If you wish to remove this functionality, you can, by editing the wp-content\plugins\ajax-search-lite\js\nomin\jquery.ajaxsearchlite.js file, removing lines 238 to 271:

    var trEvent = "touchend";
    if ( $this.n.results.hasClass("mCustomScrollbar") )
        trEvent = "mousedown";
    $this.n.resultsDiv.bind(trEvent, function (e) {
        if (isMobile() && focused) {
            /*
             * This will make sure that if the user clicked on the results
             * then nothing happens.
             */
            e.preventDefault();
            e.stopPropagation();
            e.stopImmediatePropagation();
    
            /**
             * mcustomScrollbar catches all events and prevents them.
             * So instead we cancel the first click on the result URL, preventing
             * accidental clicks or clicks intended to just hide the keyboard.
             * This is not needed for Isotopic and Polaroid results.
             */
            if ( $this.n.results.hasClass("mCustomScrollbar") ) {
                $this.n.resultsDiv.one("click", "a.asl_res_url", function(e) {
                    e.preventDefault();
                    e.stopPropagation();
                    e.stopImmediatePropagation();
                    return false;
                });
            }
    
            // Hinde the mobile keyboard
            document.activeElement.blur();
            focused = false;
            return false;
        }
    });

    Then you will also have to change the javascript source option to Non-minified on the Compatibility Settings submenu: https://i.imgur.com/h0NgMFR.png

    Best regards,
    Ernest

    Thread Starter yasuknd

    (@yasuknd)

    Awesome! It works good for me!
    Thank you very much for your prompt reply:)

    Plugin Author wpdreams

    (@wpdreams)

    You are very welcome!

    If you don’t mind, I’m going to mark this topic as resolved.

    Feel free to rate the plugin if you like it, it’s greatly appreciated.

    Have a nice day,
    Ernest

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘iOS requires double-tap for a serach result link’ is closed to new replies.