• Manuel Razzari

    (@manuelrazzari)


    As reported before here and here: The “Other” tip field blinks, or closes instantly, on mobile.

    Explanation: Chrome treates touchstart and touchmove listeners on window, document, and body as passive by default since Chrome 56. This plugin uses delegated handlers on body for both click and touchstart, so preventDefault() in the touchstart path can be ignored and the browser may still fire a synthesized click. One tap can therefore toggle the custom tip panel twice, making it open and immediately close. Switching those handlers to click only removes the duplicate activation and the passive-listener console warning for users.

    Fix: open wp-content/plugins/wpc-order-tip/assets/js/frontend.js.

    Replace 3 instances of
    $('body').on('click touch touchstart' …
    For
    $('body').on('click' …

    Hopefully this fix can be integrated back into the plugin?

    • This topic was modified 1 month ago by Manuel Razzari. Reason: Added count of instances to edit

You must be logged in to reply to this topic.