Alfredo Braunstein wrote:
> A workaround (can be possibly backported?):
... but breaking the mouse wheel. Attached again with a fix.
This behaves as a x2 boost under qt for me in some situations (like
scrolling with page-down).
Alfredo
Index: QContentPane.C
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/frontends/qt2/QContentPane.C,v
retrieving revision 1.26
diff -u -p -u -r1.26 QContentPane.C
--- QContentPane.C 21 Sep 2003 16:02:53 -0000 1.26
+++ QContentPane.C 19 Nov 2003 10:52:22 -0000
@@ -91,7 +91,8 @@ QContentPane::QContentPane(QWorkArea * p
void QContentPane::scrollBarChanged(int val)
{
- wa_->scrollDocView(val);
+ if (wa_->scrollbar_->draggingSlider())
+ wa_->scrollDocView(val);
}
@@ -131,6 +132,7 @@ void QContentPane::mouseMoveEvent(QMouse
void QContentPane::wheelEvent(QWheelEvent * e)
{
wa_->scrollbar_->setValue(wa_->scrollbar_->value() - e->delta());
+ wa_->scrollDocView(wa_->scrollbar_->value());
}