@@ -1171,27 +1171,14 @@ export class MultiEditorTabsControl extends EditorTabsControl {
1171
1171
} else {
1172
1172
dropTarget = undefined ;
1173
1173
}
1174
- this . updateDropTarget ( dropTarget ) ;
1175
1174
1176
- // Outline
1177
- const activeContrastBorderColor = this . getColor ( activeContrastBorder ) ;
1178
- if ( activeContrastBorderColor && isDND ) {
1179
- element . style . outlineWidth = '2px' ;
1180
- element . style . outlineStyle = 'dashed' ;
1181
- element . style . outlineColor = activeContrastBorderColor ;
1182
- element . style . outlineOffset = isTab ? '-5px' : '-3px' ;
1183
- } else {
1184
- element . style . outlineWidth = '' ;
1185
- element . style . outlineStyle = '' ;
1186
- element . style . outlineColor = activeContrastBorderColor || '' ;
1187
- element . style . outlineOffset = '' ;
1188
- }
1175
+ this . updateDropTarget ( dropTarget ) ;
1189
1176
}
1190
1177
1191
1178
private dropTarget : { leftElement : HTMLElement | undefined ; rightElement : HTMLElement | undefined } | undefined ;
1192
- private updateDropTarget ( target : { leftElement : HTMLElement | undefined ; rightElement : HTMLElement | undefined } | undefined ) : void {
1179
+ private updateDropTarget ( newTarget : { leftElement : HTMLElement | undefined ; rightElement : HTMLElement | undefined } | undefined ) : void {
1193
1180
const oldTargets = this . dropTarget ;
1194
- if ( oldTargets === target || oldTargets && target && oldTargets . leftElement === target . leftElement && oldTargets . rightElement === target . rightElement ) {
1181
+ if ( oldTargets === newTarget || oldTargets && newTarget && oldTargets . leftElement === newTarget . leftElement && oldTargets . rightElement === newTarget . rightElement ) {
1195
1182
return ;
1196
1183
}
1197
1184
@@ -1203,12 +1190,12 @@ export class MultiEditorTabsControl extends EditorTabsControl {
1203
1190
oldTargets . rightElement ?. classList . remove ( dropClassRight ) ;
1204
1191
}
1205
1192
1206
- if ( target ) {
1207
- target . leftElement ?. classList . add ( dropClassLeft ) ;
1208
- target . rightElement ?. classList . add ( dropClassRight ) ;
1193
+ if ( newTarget ) {
1194
+ newTarget . leftElement ?. classList . add ( dropClassLeft ) ;
1195
+ newTarget . rightElement ?. classList . add ( dropClassRight ) ;
1209
1196
}
1210
1197
1211
- this . dropTarget = target ;
1198
+ this . dropTarget = newTarget ;
1212
1199
}
1213
1200
1214
1201
private getTabDragOverLocation ( e : DragEvent , tab : HTMLElement ) : 'left' | 'right' {
0 commit comments