@@ -142,6 +142,10 @@ export class MergeEditor extends AbstractTextEditor<IMergeEditorViewState> {
142142 synchronizeScrolling ( this . input1View . editor , this . inputResultView . editor , mapping , MappingDirection . input ) ;
143143 this . input2View . editor . setScrollTop ( c . scrollTop , ScrollType . Immediate ) ;
144144 }
145+ if ( c . scrollLeftChanged ) {
146+ this . input2View . editor . setScrollLeft ( c . scrollLeft , ScrollType . Immediate ) ;
147+ this . inputResultView . editor . setScrollLeft ( c . scrollLeft , ScrollType . Immediate ) ;
148+ }
145149 } )
146150 )
147151 ) ;
@@ -153,6 +157,10 @@ export class MergeEditor extends AbstractTextEditor<IMergeEditorViewState> {
153157 synchronizeScrolling ( this . input2View . editor , this . inputResultView . editor , mapping , MappingDirection . input ) ;
154158 this . input1View . editor . setScrollTop ( c . scrollTop , ScrollType . Immediate ) ;
155159 }
160+ if ( c . scrollLeftChanged ) {
161+ this . input1View . editor . setScrollLeft ( c . scrollLeft , ScrollType . Immediate ) ;
162+ this . inputResultView . editor . setScrollLeft ( c . scrollLeft , ScrollType . Immediate ) ;
163+ }
156164 } )
157165 )
158166 ) ;
@@ -165,6 +173,10 @@ export class MergeEditor extends AbstractTextEditor<IMergeEditorViewState> {
165173 const mapping2 = this . model ?. input2ResultMapping . get ( ) ;
166174 synchronizeScrolling ( this . inputResultView . editor , this . input2View . editor , mapping2 , MappingDirection . output ) ;
167175 }
176+ if ( c . scrollLeftChanged ) {
177+ this . input1View . editor . setScrollLeft ( c . scrollLeft , ScrollType . Immediate ) ;
178+ this . input2View . editor . setScrollLeft ( c . scrollLeft , ScrollType . Immediate ) ;
179+ }
168180 } )
169181 )
170182 ) ;
0 commit comments