The mining section of the game could feel better if instead of using onClick you could use onMouseDown/onPointerDown.
Right now, when moving your mouse fast and you press down and move the mouse outside the block then release and it won't mine the block which feels bad.
Tried it out myself by patching the js and it feels like 30% better when moving the mouse and clicking rapidly .