File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
services/static-webserver/client/source/class/osparc/ui/basic Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff 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} ) ;
You can’t perform that action at this time.
0 commit comments