Fixes #712, Modal uses RequestAnimationFrame without doing browser normalization on the event