Am 30.06.2010 um 12:56 schrieb Jean-Marc LASGOUTTES: > "James C. Sutherland" <james.sutherl...@utah.edu> writes: >> When trying to scroll with the mouse, I get many copies of the following >> message: >> >>> /Users/stephan/cvs/lyx/lyx-2.0.0alpha4/src/frontends/qt4/GuiWorkArea.cpp(840): >>> wheelScrollLines = 3 delta = 0 scroll_value = 0 page_step = 734 >>> > > The problem is "delata = 0". The code reads: > > void GuiWorkArea::wheelEvent(QWheelEvent * ev) > { > // Wheel rotation by one notch results in a delta() of 120 (see > // documentation of QWheelEvent) > int const delta = ev->delta() / 120; > > On PCs, the mouse wheel clicks, and each wheelEvent corresponds to a > multiple of 120 (unot is eighth of degree, and a click is 15 degrees). > On a mac, the situation is different, since the wheel turns smoothly. > > It might be enough to have delta be a double. Could you test the > attached patch?
Really cool! It works with one small correction: the convert() function cannot handle the double value. I changed the patch accordingly and attach it again. Stephan
scroll.diff
Description: Binary data