- Updated documentation with `direction` parameter of `onLeave` event.