window.addEventListener('pointerdown', function onFirstPointer(e) { window.POINTER_SIZE = e.height; window.removeEventListener('pointerdown', onFirstPointer, false); }, false);