Am 29.01.2008 um 13:23 schrieb Abdelrazak Younes:

Stefan Schimanski wrote:
Am 29.01.2008 um 11:17 schrieb [EMAIL PROTECTED]:

-    buffer_.changed();
+    }
+
+    if (par_pos < value) {
+ // It seems we didn't find the correct pit so stay on the safe side and
+        // scroll to bottom.
+        LYXERR0("scrolling position not found!");
+        scrollDocView(d->scrollbarParameters_.max);
+        return;
+    }

This case is not as bad as your error message suggests. I think it happens everytime you try to scroll beyond the end very fast, doesn't it it?

In theory no, at least I couldn't trigger it on Windows. I just thought that it was safer to assume it was possible. I'd be interested to know if it happens on Mac or X11. If not, then we could probably put an assertion here.

The value is just the old position plus the delta coming from the wheel event. So by moving the wheel fast enough it should be possible to make value bigger than the buffer dimensions, and hence to trigger this case.

Stefan

Reply via email to