mGestureStackDepth = 0;
- EnableGestureDetection( Gesture::Type( Gesture::Pan | Gesture::Pinch ) );
+ EnableGestureDetection( Gesture::Type( Gesture::Pan ) );
// For pan, default to only 1 touch required, ignoring touches outside this range.
SetTouchesRequiredForPanning(1, 1, false);
{
Actor self = Self();
PanGestureDetector panGesture( GetPanGestureDetector() );
- PinchGestureDetector pinchGesture( GetPinchGestureDetector() );
if((!mSensitive) && (sensitive))
{
mSensitive = sensitive;
panGesture.Attach(self);
- pinchGesture.Attach(self);
}
else if((mSensitive) && (!sensitive))
{
mSensitive = sensitive;
panGesture.Detach(self);
- pinchGesture.Detach(self);
mGestureStackDepth = 0;
self.SetProperty(mPropertyPanning, false);
OnGestureEx(gesture.state);
}
-void ScrollView::OnPinch(PinchGesture gesture)
-{
- // TODO: Reintroduce the pinch functionality for scaling.
-}
-
void ScrollView::OnGestureEx(Gesture::State state)
{
// call necessary signals for application developer
void OnPan(PanGesture pan);
/**
- * Called up pinch gesture event.
- *
- * @param[in] gesture The gesture event.
- */
- void OnPinch(PinchGesture gesture);
-
- /**
* Extension of the above gestures.
*
* @param[in] gesture The gesture event.