summaryrefslogtreecommitdiffstats
path: root/client/components/mixins
diff options
context:
space:
mode:
Diffstat (limited to 'client/components/mixins')
-rw-r--r--client/components/mixins/perfectScrollbar.js10
1 files changed, 9 insertions, 1 deletions
diff --git a/client/components/mixins/perfectScrollbar.js b/client/components/mixins/perfectScrollbar.js
index 06e8aedd..510a4563 100644
--- a/client/components/mixins/perfectScrollbar.js
+++ b/client/components/mixins/perfectScrollbar.js
@@ -1,6 +1,14 @@
Mixins.PerfectScrollbar = BlazeComponent.extendComponent({
onRendered: function() {
var component = this.mixinParent();
- Ps.initialize(component.find('.js-perfect-scrollbar'));
+ var domElement = component.find('.js-perfect-scrollbar');
+ Ps.initialize(domElement);
+
+ // XXX We should create an event map to be consistent with other components
+ // but since BlazeComponent doesn't merge Mixins events transparently I
+ // prefered to use a jQuery event (which is what an event map ends up doing)
+ component.$(domElement).on('mouseenter', function() {
+ Ps.update(domElement);
+ });
}
});