File tree Expand file tree Collapse file tree 3 files changed +21
-13
lines changed
static/app/views/performance/newTraceDetails Expand file tree Collapse file tree 3 files changed +21
-13
lines changed Original file line number Diff line number Diff line change @@ -203,8 +203,9 @@ export function TraceDrawer(props: TraceDrawerProps) {
203
203
height : 0 ,
204
204
} ;
205
205
206
- const initialSize =
207
- props . trace_state . preferences . layout === 'drawer bottom'
206
+ const initialSize = props . trace_state . preferences . drawer . minimized
207
+ ? 0
208
+ : props . trace_state . preferences . layout === 'drawer bottom'
208
209
? height * initialSizeInPercentage
209
210
: width * initialSizeInPercentage ;
210
211
Original file line number Diff line number Diff line change @@ -217,7 +217,7 @@ export const useVirtualizedList = (
217
217
scrollContainerRef . current . style . pointerEvents = 'auto' ;
218
218
pointerEventsRaf . current = null ;
219
219
}
220
- } , 50 ) ;
220
+ } , 150 ) ;
221
221
} ;
222
222
223
223
props . container . addEventListener ( 'scroll' , onScroll , { passive : true } ) ;
Original file line number Diff line number Diff line change @@ -756,7 +756,7 @@ export class VirtualizedViewManager {
756
756
// Holding shift key allows for horizontal scrolling
757
757
const distance = event . shiftKey ? event . deltaY : event . deltaX ;
758
758
759
- if ( Math . abs ( event . deltaX ) !== 0 ) {
759
+ if ( Math . abs ( event . deltaX ) > Math . abs ( event . deltaY ) ) {
760
760
// Prevents firing back/forward navigation
761
761
event . preventDefault ( ) ;
762
762
} else {
@@ -1452,23 +1452,30 @@ export class VirtualizedViewManager {
1452
1452
options . span_list_width ;
1453
1453
this . indicator_container . style . transform = `transform(${ - this . scrollbar_width } px, 0)` ;
1454
1454
const new_indicator_container_width = options . span_list_width - correction ;
1455
+
1455
1456
if ( this . last_indicator_width !== new_indicator_container_width ) {
1456
1457
this . indicator_container . style . width = new_indicator_container_width * 100 + '%' ;
1457
1458
this . last_indicator_width = new_indicator_container_width ;
1458
1459
}
1459
1460
}
1460
1461
1462
+ const dividerPosition =
1463
+ Math . round (
1464
+ ( options . list_width *
1465
+ ( this . container_physical_space . width - this . scrollbar_width ) -
1466
+ DIVIDER_WIDTH / 2 -
1467
+ 1 ) *
1468
+ 10
1469
+ ) / 10 ;
1470
+
1471
+ if ( this . horizontal_scrollbar_container ) {
1472
+ this . horizontal_scrollbar_container . style . width =
1473
+ ( dividerPosition / this . container_physical_space . width ) * 100 + '%' ;
1474
+ }
1475
+
1461
1476
if ( this . divider ) {
1462
1477
this . divider . style . transform = `translate(
1463
- ${
1464
- Math . round (
1465
- ( options . list_width *
1466
- ( this . container_physical_space . width - this . scrollbar_width ) -
1467
- DIVIDER_WIDTH / 2 -
1468
- 1 ) *
1469
- 10
1470
- ) / 10
1471
- } px, 0)`;
1478
+ ${ dividerPosition } px, 0)` ;
1472
1479
}
1473
1480
}
1474
1481
last_list_column_width = 0 ;
You can’t perform that action at this time.
0 commit comments