@@ -142,6 +142,10 @@ export class MergeEditor extends AbstractTextEditor<IMergeEditorViewState> {
142
142
synchronizeScrolling ( this . input1View . editor , this . inputResultView . editor , mapping , MappingDirection . input ) ;
143
143
this . input2View . editor . setScrollTop ( c . scrollTop , ScrollType . Immediate ) ;
144
144
}
145
+ if ( c . scrollLeftChanged ) {
146
+ this . input2View . editor . setScrollLeft ( c . scrollLeft , ScrollType . Immediate ) ;
147
+ this . inputResultView . editor . setScrollLeft ( c . scrollLeft , ScrollType . Immediate ) ;
148
+ }
145
149
} )
146
150
)
147
151
) ;
@@ -153,6 +157,10 @@ export class MergeEditor extends AbstractTextEditor<IMergeEditorViewState> {
153
157
synchronizeScrolling ( this . input2View . editor , this . inputResultView . editor , mapping , MappingDirection . input ) ;
154
158
this . input1View . editor . setScrollTop ( c . scrollTop , ScrollType . Immediate ) ;
155
159
}
160
+ if ( c . scrollLeftChanged ) {
161
+ this . input1View . editor . setScrollLeft ( c . scrollLeft , ScrollType . Immediate ) ;
162
+ this . inputResultView . editor . setScrollLeft ( c . scrollLeft , ScrollType . Immediate ) ;
163
+ }
156
164
} )
157
165
)
158
166
) ;
@@ -165,6 +173,10 @@ export class MergeEditor extends AbstractTextEditor<IMergeEditorViewState> {
165
173
const mapping2 = this . model ?. input2ResultMapping . get ( ) ;
166
174
synchronizeScrolling ( this . inputResultView . editor , this . input2View . editor , mapping2 , MappingDirection . output ) ;
167
175
}
176
+ if ( c . scrollLeftChanged ) {
177
+ this . input1View . editor . setScrollLeft ( c . scrollLeft , ScrollType . Immediate ) ;
178
+ this . input2View . editor . setScrollLeft ( c . scrollLeft , ScrollType . Immediate ) ;
179
+ }
168
180
} )
169
181
)
170
182
) ;
0 commit comments