File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9973,6 +9973,7 @@ LGraphNode.prototype.executeAction = function(action)
99739973 var x = pos [ 0 ] - node . pos [ 0 ] ;
99749974 var y = pos [ 1 ] - node . pos [ 1 ] ;
99759975 var width = node . size [ 0 ] ;
9976+ var deltaX = event . deltaX || event . deltax || 0 ;
99769977 var that = this ;
99779978 var ref_window = this . getCanvasWindow ( ) ;
99789979
@@ -10019,8 +10020,8 @@ LGraphNode.prototype.executeAction = function(action)
1001910020 case "combo" :
1002010021 var old_value = w . value ;
1002110022 if ( event . type == LiteGraph . pointerevents_method + "move" && w . type == "number" ) {
10022- if ( event . deltaX )
10023- w . value += event . deltaX * 0.1 * ( w . options . step || 1 ) ;
10023+ if ( deltaX )
10024+ w . value += deltaX * 0.1 * ( w . options . step || 1 ) ;
1002410025 if ( w . options . min != null && w . value < w . options . min ) {
1002510026 w . value = w . options . min ;
1002610027 }
@@ -11497,7 +11498,8 @@ LGraphNode.prototype.executeAction = function(action)
1149711498 var input = dialog . querySelector ( "input" ) ;
1149811499 if ( input ) {
1149911500 input . addEventListener ( "blur" , function ( e ) {
11500- this . focus ( ) ;
11501+ if ( that . search_box )
11502+ this . focus ( ) ;
1150111503 } ) ;
1150211504 input . addEventListener ( "keydown" , function ( e ) {
1150311505 if ( e . keyCode == 38 ) {
You can’t perform that action at this time.
0 commit comments