//
AIS_MouseGesture_Zoom, //!< view zoom gesture;
//! move mouse left to zoom-out, and to the right to zoom-in
+ AIS_MouseGesture_ZoomVertical, //!< view zoom vertical;
AIS_MouseGesture_ZoomWindow, //!< view zoom by window gesture;
//! press button to start, move mouse to define rectangle, release to finish
AIS_MouseGesture_Pan, //!< view panning gesture
}
case AIS_MouseGesture_Zoom:
case AIS_MouseGesture_ZoomWindow:
+ case AIS_MouseGesture_ZoomVertical:
{
if (!myToAllowZooming)
{
}
break;
}
+ case AIS_MouseGesture_ZoomVertical:
+ {
+ if (!myToAllowZooming)
+ {
+ break;
+ }
+ const double aZoomTol = theIsEmulated
+ ? double(myTouchToleranceScale) * myTouchZoomThresholdPx
+ : 0.0;
+ if (double (Abs (aDelta.y())) > aZoomTol)
+ {
+ if (UpdateZoom (Aspect_ScrollDelta (aDelta.y())))
+ {
+ toUpdateView = true;
+ }
+ myMouseProgressPoint = thePoint;
+ }
+ break;
+ }
case AIS_MouseGesture_Pan:
{
if (!myToAllowPanning)