mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-11 03:03:06 +00:00
Fixed size line scrolling gives a better user experience.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22232 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
f833ad1d2c
commit
4fe31abd06
@ -454,7 +454,7 @@ void BufferView::updateScrollbar()
|
|||||||
Row const & row = pm.rows()[i];
|
Row const & row = pm.rows()[i];
|
||||||
if (row_pos >= 0) {
|
if (row_pos >= 0) {
|
||||||
LYXERR(Debug::SCROLLING, "first visible row " << i
|
LYXERR(Debug::SCROLLING, "first visible row " << i
|
||||||
<< "(row pos = )" << row_pos << ");");
|
<< "(row pos = " << row_pos << ");");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
row_pos += row.height();
|
row_pos += row.height();
|
||||||
@ -469,8 +469,8 @@ void BufferView::updateScrollbar()
|
|||||||
d->scrollbarParameters_.height += d->par_height_[i];
|
d->scrollbarParameters_.height += d->par_height_[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
d->scrollbarParameters_.lineScrollHeight =
|
// We prefer fixed size line scrolling.
|
||||||
tm.parMetrics(first_visible_pit).rows()[0].height();
|
d->scrollbarParameters_.lineScrollHeight = defaultRowHeight();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user