Fix drag handling on Safari and Firefox