• When I scroll the comment list on the phone, it is very easy to accidentally touch the REPLY button and open the rely form. After some research, I figure out that it caused by wp native commet-reply.js as this file added listener for touchstart event. The code in comment-reply.js:

    element.addEventListener( 'touchstart', clickEvent );
    element.addEventListener( 'click',      clickEvent );

    I am very curious why this is necessary after we already have click event.

  • The topic ‘Why listen touchstart event for comment reply button?’ is closed to new replies.