JSFiddle - React, Tailwind, and code Playground

HTML

<div>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ex eos, provident architecto aliquid facilis soluta sequi nam consequuntur veritatis! Inventore hic, optio quo dignissimos veritatis saepe ut laborum, voluptas modi.</div>

JavaScript

var throttle = false;

document.querySelector('div').addEventListener('click', function (evt) {
    var o = this,
        ot = this.textContent;
    if (!throttle && evt.detail >= 3) {
        clearSelection();
    }
});

function clearSelection() {
    if(document.selection && document.selection.empty) {
        document.selection.empty();
    } else if(window.getSelection) {
        var sel = window.getSelection();
        sel.removeAllRanges();
    }
}