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:
Abdelrazak Younes 2007-12-21 13:24:57 +00:00
parent f833ad1d2c
commit 4fe31abd06

View File

@ -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();
}