[IMP] web: webclient: listen to scroll event

and propagate events on the main bus
This commit is contained in:
Aaron Bohy
2016-06-16 14:59:39 +02:00
parent e7256058f2
commit c577fccb3f
@@ -62,7 +62,11 @@ var WebClient = Widget.extend({
// though it has no valid session
return $.when();
}
}).then(core.bus.trigger.bind(core.bus, 'web_client_ready'));
}).then(function () {
// Listen to 'scroll' event and propagate it on main bus
self.action_manager.$el.on('scroll', core.bus.trigger.bind(core.bus, 'scroll'));
core.bus.trigger('web_client_ready');
});
},
bind_events: function() {
var self = this;