[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 21:19:22 CET 2011
A Dimarts, 1 de febrer de 2011, Денис Песоцкий va escriure:
> Fuck sake :)
Control your language
> Following happens when mouse is wrapped:
> 1) QCursor::setPos(new_pos)
> 2) mouseGrabPos = new_pos
> So absDelta will be ok. I'll mark corresponding lines, look:
>
> if ( mousePos.y() <= mouseContainer.top() + 4
> && verticalScrollBar()->value() <
> verticalScrollBar()->maximum() - 10 )
> {
> mousePos.setY( mouseContainer.bottom() - 5 );
> //!!!!! QCursor::setPos( mousePos );
> }
> // wrap mouse from bottom to top
> else if ( mousePos.y() >= mouseContainer.bottom() - 4
> && verticalScrollBar()->value() > 10 )
> {
> mousePos.setY( mouseContainer.top() + 5 );
> //!!!!!! QCursor::setPos( mousePos );
> }
> // remember last position
> d->mouseGrabPos = mousePos; //!!!!!!!!!!!!!!!!!!!!!!!
>
> At last line it remembers new mouse pos. So next delta will be good
> delta...
Yes, i know, but empirical experience says that without the lines above bad
things happen, check the svn logs, maybe they are uncovering a bug somewhere
else though.
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