From d79950e30fd4b3530843a6e68c10522576162136 Mon Sep 17 00:00:00 2001 From: Robin Komiwes Date: Wed, 20 Feb 2013 18:07:51 +0100 Subject: [PATCH] Trigger an event when scrolling This is so useful when you want to recalculate the position of elements when something is scrolling (like tooltips). Bonus: a rainbow :rainbow: --- jquery.slimscroll.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/jquery.slimscroll.js b/jquery.slimscroll.js index aede60f..9215b7b 100644 --- a/jquery.slimscroll.js +++ b/jquery.slimscroll.js @@ -236,6 +236,8 @@ { var delta = y; var maxTop = me.outerHeight() - bar.outerHeight(); + + me.trigger('slimscrolling'); if (isWheel) {