mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-10 20:04:46 +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];
|
||||
if (row_pos >= 0) {
|
||||
LYXERR(Debug::SCROLLING, "first visible row " << i
|
||||
<< "(row pos = )" << row_pos << ");");
|
||||
<< "(row pos = " << row_pos << ");");
|
||||
break;
|
||||
}
|
||||
row_pos += row.height();
|
||||
@ -469,8 +469,8 @@ void BufferView::updateScrollbar()
|
||||
d->scrollbarParameters_.height += d->par_height_[i];
|
||||
}
|
||||
|
||||
d->scrollbarParameters_.lineScrollHeight =
|
||||
tm.parMetrics(first_visible_pit).rows()[0].height();
|
||||
// We prefer fixed size line scrolling.
|
||||
d->scrollbarParameters_.lineScrollHeight = defaultRowHeight();
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user