Typo in comment
Do not program the same action multiple times

The previous code was causing an infinite recursion in some case:
onActionOverEventHandler called events.onAllActionFinish.subscribe on the
current event, which in turn called onActionOverEventHandler with the
same value of currentAction.

Incrementing currentAction++ fixes the issue.
Compute the duration of mouse movements based on distance

To get a smooth animation, we really want a constant mouse speed, not a
constant duration. We can specify the speed explicitly, but also provide
a reasonable default.
Generate presentation.dahu with "speed" by default, not "duration"