Commit 9190c922 authored by Pino Toscano's avatar Pino Toscano

raise a bit the tolerance

Thomas, what do you think?
CCBUG: 157336

svn path=/trunk/KDE/kdegraphics/okular/; revision=956361
parent f806e7cb
......@@ -1824,7 +1824,7 @@ void PageView::contentsMouseReleaseEvent( QMouseEvent * e )
rect = pageItem->page()->objectRect( Okular::ObjectRect::SourceRef, nX, nY, pageItem->uncroppedWidth(), pageItem->uncroppedHeight() );
if ( !rect )
{
static const double s_minDistance = 0.025 * 0.025; // FIXME?: empirical value?
static const double s_minDistance = 0.025; // FIXME?: empirical value?
double distance = 0.0;
rect = pageItem->page()->nearestObjectRect( Okular::ObjectRect::SourceRef, nX, nY, pageItem->uncroppedWidth(), pageItem->uncroppedHeight(), &distance );
if ( rect && ( distance > s_minDistance ) )
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment