Am 29.01.2008 um 13:42 schrieb Abdelrazak Younes:
Stefan Schimanski wrote:
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.
No, the value is always the exact slider position so in theory it
should not exceed 'scrollbarParameters_.max'
I didn't see that the scrollbar is set with the pos+delta value and
this triggers the scrollDocView call... so you are right of course.
Stefan