Remove a few unneccesary property accesses
Force stable y scroll when focusing textarea in onContextMenu

Closes #2712