Skip to content

Commit cc91b48

Browse files
authored
Update boxesscroll.js
add event listener computegrabbersizes
1 parent 842b502 commit cc91b48

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/boxesscroll.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@
118118
*/
119119
function addEventListeners() {
120120
ctrl.ngelt.on('wheel', wheelOnElt);
121+
ctrl.ngelt.on('computegrabbersizes', ctrl.updateSize);
121122
// ctrl.elt.addEventListener("wheel", function (event) {
122123
// boxesScrollServices.execAndApplyIfScrollable($scope, this, wheel, [event]);
123124
// }, {passive: true, capture: true});
@@ -134,6 +135,7 @@
134135
}
135136
function removeEventListeners() {
136137
ctrl.ngelt.off('wheel', wheelOnElt);
138+
ctrl.ngelt.off('computegrabbersizes', ctrl.updateSize);
137139
ctrl.ngsb.off("mouseout", mouseoutOnSb);
138140
ctrl.ngsb.off("mousedown", mousedownOnSb);
139141
ctrl.ngsb.off("mouseup", mouseup);

0 commit comments

Comments
 (0)