File tree 2 files changed +16
-1
lines changed
2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,10 @@ class LogConsole
11
11
12
12
this . container = document . getElementById ( "log-container-div" ) ;
13
13
14
+ this . isBeingScrolled = false ;
15
+ this . container . addEventListener ( 'mousedown' , ( ) => { this . isBeingScrolled = true ; } , false ) ;
16
+ this . container . addEventListener ( 'mouseup' , ( ) => { this . isBeingScrolled = false ; } , false ) ;
17
+
14
18
this . scroller = undefined ;
15
19
this . config = undefined ;
16
20
@@ -138,7 +142,7 @@ class LogConsole
138
142
{
139
143
this . hyperlist . refresh ( this . container , this . getHyperListConfig ( ) ) ;
140
144
141
- if ( this . autoScrollToEnd && ! app . isViewPaused )
145
+ if ( this . autoScrollToEnd && ! app . isViewPaused && ! this . isBeingScrolled )
142
146
{
143
147
// this.logIndexToHighlighting = -1;
144
148
this . container . scrollTop = app . logs . length * this . itemHeight ; // this is always greater than the div height, so it will scroll to the end
Original file line number Diff line number Diff line change @@ -20,6 +20,17 @@ else {
20
20
let port = window . location . port ;
21
21
conn . connect ( addr , port ) ;
22
22
app . connections . push ( conn ) ;
23
+
24
+ // Parse url params
25
+ let params = new URLSearchParams ( window . location . search ) ;
26
+
27
+ // Open layout from url
28
+ let layout = params . get ( "layout" )
29
+ if ( layout ) {
30
+ fetch ( layout ) . then ( res => res . blob ( ) ) . then ( blob => {
31
+ importLayoutJSON ( { target :{ files :[ blob ] } } ) ;
32
+ } ) ;
33
+ }
23
34
}
24
35
25
36
You can’t perform that action at this time.
0 commit comments