Skip to content
Permalink
Browse files

Only grab tap-and-hold gestures on Android

We don't want to capture these on desktop environments - it
messes with dropdown menus and other click and drag type operations
  • Loading branch information
nyalldawson committed Aug 2, 2017
1 parent c373c8b commit 1887cfffa8775f71091a4a8f88e5a4f5563fc516
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/app/qgisapp.cpp
@@ -12616,11 +12616,16 @@ void QgisApp::onLayerError( const QString &msg )

bool QgisApp::gestureEvent( QGestureEvent *event )
{
#ifdef Q_OS_ANDROID
if ( QGesture *tapAndHold = event->gesture( Qt::TapAndHoldGesture ) )
{
tapAndHoldTriggered( static_cast<QTapAndHoldGesture *>( tapAndHold ) );
}
return true;
#else
Q_UNUSED( event );
return false;
#endif
}

void QgisApp::tapAndHoldTriggered( QTapAndHoldGesture *gesture )

0 comments on commit 1887cff

Please sign in to comment.
You can’t perform that action at this time.