ngx-text-diff icon indicating copy to clipboard operation
ngx-text-diff copied to clipboard

Scroll between differences

Open MichalJakubeczy opened this issue 5 years ago • 1 comments

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

MichalJakubeczy avatar Apr 22 '20 13:04 MichalJakubeczy

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

Regards

ABenassi87 avatar Apr 22 '20 13:04 ABenassi87