[AT-SPI] Allow two finger pan gesture 24/243624/22
authorArtur Świgoń <a.swigon@samsung.com>
Tue, 8 Sep 2020 13:40:07 +0000 (15:40 +0200)
committerArtur Świgoń <a.swigon@samsung.com>
Fri, 23 Oct 2020 13:07:00 +0000 (15:07 +0200)
Change-Id: I56de34b73f265849a1f74f09cbf5c1a9f1428165

dali-toolkit/public-api/controls/control-impl.cpp

index e9b5c0d..684e695 100644 (file)
@@ -240,6 +240,7 @@ void Control::EnableGestureDetection(GestureType::Value type)
   if((type & GestureType::PAN) && !mImpl->mPanGestureDetector)
   {
     mImpl->mPanGestureDetector = PanGestureDetector::New();
+    mImpl->mPanGestureDetector.SetMaximumTouchesRequired(2);
     mImpl->mPanGestureDetector.DetectedSignal().Connect(mImpl, &Impl::PanDetected);
     mImpl->mPanGestureDetector.Attach(Self());
   }