function getTap(e) {
    const currentTime = new Date().getTime();
    const tapLength = currentTime - lastTap;
    clearTimeout(timeout);
    if (tapLength < 500 && tapLength > 0) {
        onDoubleClickorTap(e);
    } else {
    // Single tap
    }
    openCurrMenu(-1);
    lastTap = currentTime;
    e.preventDefault();
}
@param {event} e
function to detect tap and double tap