tsantalis / RefactoringMiner

MIT License
358 stars 137 forks source link

Click on non-touched lines should also scroll #726

Closed koppor closed 4 months ago

koppor commented 4 months ago

Currently, when clicking on deleted and inserted, the views sync.

When clicking on non-touched lines, nothing happens.

Wish: Clicking on non-touched lines, the other view should scroll to that position.

(This is a workaround for https://github.com/tsantalis/RefactoringMiner/issues/672)

tsantalis commented 4 months ago

@koppor

Double-clicking on non-touched lines auto-scrolls and aligns the editors.

koppor commented 4 months ago

@koppor

Double-clicking on non-touched lines auto-scrolls and aligns the editors.

Oh, and for the touched ones a single click? Why this UI difference? 😅

tsantalis commented 4 months ago

@pouryafard75 Could you please clarify why double-click for unchanged lines and not single-click?

I tested the new feature, and it seems now that both changed and unchanged lines need a double-click.