refactor(event): better motion end logic

Also moved the trigger function after the callback has been added.
Release 0.1.3