Skip to content

Commit afff7b0

Browse files
committed
minor
1 parent 8d9ccd2 commit afff7b0

File tree

1 file changed

+6
-3
lines changed
  • services/static-webserver/client/source/class/osparc/ui/basic

1 file changed

+6
-3
lines changed

services/static-webserver/client/source/class/osparc/ui/basic/AvatarGroup.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ qx.Class.define("osparc.ui.basic.AvatarGroup", {
3535
this.__orientation = orientation;
3636
this.__maxVisible = Math.floor(maxWidth/size) - 1; // Reserve space for the extra avatar
3737

38-
document.addEventListener("pointermove", this.__onGlobalPointerMove.bind(this));
38+
this.__isPointerInside = false;
39+
this.__onGlobalPointerMove = this.__onGlobalPointerMove.bind(this);
40+
document.addEventListener("pointermove", this.__onGlobalPointerMove);
3941
},
4042

4143
members: {
@@ -44,7 +46,8 @@ qx.Class.define("osparc.ui.basic.AvatarGroup", {
4446
__users: null,
4547
__avatars: null,
4648
__collapseTimeout: null,
47-
__isPointerInside: false,
49+
__isPointerInside: null,
50+
__onGlobalPointerMove: null,
4851

4952
setUsers: function(users) {
5053
this.__users = users;
@@ -159,6 +162,6 @@ qx.Class.define("osparc.ui.basic.AvatarGroup", {
159162
},
160163

161164
destruct: function() {
162-
document.removeEventListener("pointermove", this.__onGlobalPointerMove.bind(this));
165+
document.removeEventListener("pointermove", this.__onGlobalPointerMove);
163166
},
164167
});

0 commit comments

Comments
 (0)