Untitled

 avatar
unknown
javascript
2 years ago
645 B
15
Indexable
this.textbox.addEventListener('pointerdown', e =>
{
    ...

    //this.textbox.setPointerCapture(e.pointerId); // tried this but it doesn't work


    if (e.button == 1) // I use MMB for panning, this is irrelevant to the problem
    {
        e.preventDefault();
        return;
    }

    e.stopPropagation();
});



this.textbox.addEventListener('pointermove', e =>
{
    e.stopPropagation();
});



this.textbox.addEventListener('pointerup', e =>
{
    e.stopPropagation();


    ...


    //if (this.textbox.hasPointerCapture(e.pointerId))
    //    this.textbox.releasePointerCapture(e.pointerId);
});
Editor is loading...