Fixes the cursor positioning bug introduced in Mavericks Webkit/Safari