ABenassi87 / ngx-text-diff

A Text Diff component for Angular
https://ngx-text-diff.herokuapp.com/home
50 stars 44 forks source link

Scroll between differences #48

Open MichalJakubeczy opened 4 years ago

MichalJakubeczy commented 4 years ago

Can we add two buttons Previous / Next to the toolbar which would allow user to navigate between differences?

The same way like the WinMerge does. Clicking Previous button will navigate user to previous difference, clicking Next will navigate to the next difference.

We can make these buttons with position: absolute so they're always visible when user is scrolling through the comparison. When user clicks Next it will scroll to the next change that is not in viewport, clicking Previous scrolls to the previous change that is not in the viewport.

image

ABenassi87 commented 4 years ago

@MichalJakubeczy thanks for your suggestion, I like the feature, and I will try to add this in the new release.

Regards