Move offcanvas events from default to plugin.