mirror of
https://invent.kde.org/graphics/okular
synced 2024-08-25 02:45:38 +00:00
Set viewport only once
REVIEW: 129287
This commit is contained in:
parent
d3b5e13dad
commit
59dd04766c
|
@ -737,7 +737,6 @@ void ThumbnailListPrivate::mouseReleaseEvent( QMouseEvent * e )
|
|||
// jump center of viewport to cursor if it wasn't dragged
|
||||
if ( m_mouseGrabPos.isNull() )
|
||||
{
|
||||
m_document->setViewportPage( item->pageNumber() );
|
||||
r = item->visibleRect();
|
||||
Okular::DocumentViewport vp = Okular::DocumentViewport( item->pageNumber() );
|
||||
vp.rePos.normalizedX = double(p.x()) / double(item->rect().width());
|
||||
|
|
Loading…
Reference in a new issue