mirror of https://github.com/odrling/Aegisub
Ensure that the smart-scrolling on row click doesn't scroll the clicked row out of view
Originally committed to SVN as r5584.
This commit is contained in:
parent
f21e991d67
commit
4cce4ff40d
|
@ -652,7 +652,7 @@ void BaseGrid::OnMouseEvent(wxMouseEvent &event) {
|
|||
if (row > maxVis) delta = +3;
|
||||
|
||||
if (delta) {
|
||||
ScrollTo(yPos + delta);
|
||||
ScrollTo(MID(row - (h / lineHeight), yPos + delta, row));
|
||||
|
||||
// End the hold if this was a mousedown to avoid accidental
|
||||
// selection of extra lines
|
||||
|
|
Loading…
Reference in New Issue