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

Albert Astals Cid aacid at kde.org
Tue Feb 1 01:24:42 CET 2011


A Dimarts, 1 de febrer de 2011, Денис Песоцкий va escriure:
> > 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.

Hmm, this is unfortunate we really never though that could be possible, are 
you really able to reproduce this easily?

> 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?

Yes, just drag drag the mouse to the bottom of the screen and continue 
dragging and see what happens.

Albert

> _______________________________________________
> Okular-devel mailing list
> Okular-devel at kde.org
> https://mail.kde.org/mailman/listinfo/okular-devel


More information about the Okular-devel mailing list