Handle emulated events on 'window' (Fixes #535)
Merge pull request #740 from jrajav/handle-emulated-events-3

Handle emulated events on 'window' (Fixes #535)