File tree Expand file tree Collapse file tree 2 files changed +18
-2
lines changed
services/static-webserver/client/source/class/osparc Expand file tree Collapse file tree 2 files changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -39,19 +39,27 @@ qx.Class.define("osparc.dashboard.DragWidget", {
3939 __onMouseMoveDragging : function ( e ) {
4040 if ( this . getContentElement ( ) ) {
4141 const domEl = this . getContentElement ( ) . getDomElement ( ) ;
42- domEl . style . left = `${ e . pageX + 15 } px` ;
43- domEl . style . top = `${ e . pageY + 15 } px` ;
42+ domEl . style . left = `${ e . pageX + 12 } px` ;
43+ domEl . style . top = `${ e . pageY + 12 } px` ;
4444 }
4545 } ,
4646
4747 start : function ( ) {
4848 this . show ( ) ;
4949 document . addEventListener ( "mousemove" , this . __onMouseMoveDragging . bind ( this ) , false ) ;
50+
51+ // this widget will give the drop validity feedback
52+ const cursor = qx . ui . core . DragDropCursor . getInstance ( ) ;
53+ cursor . setAppearance ( "dragdrop-no-cursor" ) ;
5054 } ,
5155
5256 end : function ( ) {
5357 this . exclude ( ) ;
5458 document . removeEventListener ( "mousemove" , this . __onMouseMoveDragging . bind ( this ) , false ) ;
59+
60+ // reset to default
61+ const cursor = qx . ui . core . DragDropCursor . getInstance ( ) ;
62+ cursor . setAppearance ( "dragdrop-cursor" ) ;
5563 } ,
5664 }
5765} ) ;
Original file line number Diff line number Diff line change @@ -19,6 +19,14 @@ qx.Theme.define("osparc.theme.Appearance", {
1919 extend : osparc . theme . common . Appearance ,
2020
2121 appearances : {
22+ "dragdrop-no-cursor" : {
23+ style : states => {
24+ return {
25+ source : "" ,
26+ }
27+ }
28+ } ,
29+
2230 "material-button-invalid" : { } ,
2331 "pb-list" : {
2432 include : "list" ,
You can’t perform that action at this time.
0 commit comments