mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
* BufferView::workAreaDispatch(): restore anchor when mouse hovering. The problem is that scrollbar update modified the offset_ref_.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20482 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
fb6af9a08a
commit
8df72fdd0f
@ -1126,6 +1126,9 @@ bool BufferView::workAreaDispatch(FuncRequest const & cmd0)
|
||||
int y2 = lastpm.second->position() + lastpm.second->descent();
|
||||
metrics_info_ = ViewMetricsInfo(firstpm.first, lastpm.first, y1, y2,
|
||||
FullScreenUpdate, buffer_.text().paragraphs().size());
|
||||
// Reinitialize anchor to first pit.
|
||||
anchor_ref_ = firstpm.first;
|
||||
offset_ref_ = -y1;
|
||||
}
|
||||
|
||||
// This event (moving without mouse click) is not passed further.
|
||||
|
Loading…
Reference in New Issue
Block a user