How can js tell if he clicked on two fingers or a single finger?

there is a function on the mobile phone that needs to be triggered by a double-finger click. Can this function be realized by js

May.13,2022

https://codeshelper.com/a/11... take a look at the implementation of this article.


var dom = document.getElementById('dom');
dom.addEventListener('touchstart', onTouchStart);

function onTouchStart(e) {
    var len = e.touches.length;
    if (len === 2) {
        console.log('');
    } else if (len === 1) {
        console.log('');
    }
}
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e505f1-44022.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e505f1-44022.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?