fix for issue #161 (Safari and Firefox do not support event.movement events)