[Okular-devel] Re: About 265002 (Unreachable code in okular/ui/pageview.cpp (related to drag scroll))

Денис Песоцкий denis at kde.ru
Tue Feb 1 01:12:07 CET 2011


> if ( absDelta.y() > mouseContainer.height() / 2 ) happens not when you move the
> mouse very fast but when cursor wraps from the top to the bottom of the screen
> as the comment says. Anyway if you wish to continue discussing this please
> subscribe to okular-devel mailing list and post there.

Ok, I'm here.
It can happen in 2 cases:
1) Mouse is moved by more than (screen height)/2 vetically between
event loops. I did that with my thinkpoint and it drags not as
excepted if I move cursor fast.
2) Cursor had wrapped somewhere in other place of code. If it wraps
here, it will do d->mouseGrabPos = mousePos; anyway. As I can see, it
can also wrap while zooming, but it can it happen in the same time it
is draggin?


More information about the Okular-devel mailing list