@@ -33,7 +33,7 @@ protected void onInitialize(Context context) {
3333 @ Override
3434 public boolean onScroll (MotionEvent e1 , MotionEvent e2 , float distanceX , float distanceY ) {
3535 boolean horizontal ;
36- Log .e ("ScrollGestureLayout" , "onScroll, distanceX=" +distanceX +", distanceY=" +distanceY );
36+ // Log.e("ScrollGestureLayout", "onScroll, distanceX="+distanceX+", distanceY="+distanceY);
3737 if (e1 .getX () != mPoints [0 ].x || e1 .getY () != mPoints [0 ].y ) {
3838 // First step. We choose now if it's a vertical or horizontal scroll, and
3939 // stick to it for the whole gesture.
@@ -46,7 +46,7 @@ public boolean onScroll(MotionEvent e1, MotionEvent e2, float distanceX, float d
4646 }
4747 mPoints [1 ].set (e2 .getX (), e2 .getY ());
4848 mDistance = horizontal ? (distanceX / getWidth ()) : (distanceY / getHeight ());
49- mDistance = -mDistance ; // they are provided inverted.
49+ mDistance = horizontal ? -mDistance : mDistance ; // When vertical, up = positive
5050 mNotify = true ;
5151 return true ;
5252 }
@@ -71,7 +71,7 @@ public boolean onTouchEvent(MotionEvent event) {
7171 mDetector .onTouchEvent (event );
7272
7373 // Keep notifying CameraView as long as the gesture goes.
74- if (mNotify ) Log .e ("ScrollGestureLayout" , "notifying a gesture " +mType .name ());
74+ // if (mNotify) Log.e("ScrollGestureLayout", "notifying a gesture "+mType.name());
7575 return mNotify ;
7676 }
7777
@@ -91,7 +91,7 @@ public float scaleValue(float currValue, float minValue, float maxValue) {
9191 float newValue = currValue + delta ;
9292 if (newValue < minValue ) newValue = minValue ;
9393 if (newValue > maxValue ) newValue = maxValue ;
94- Log .e ("ScrollGestureLayout" , "curr=" +currValue +", min=" +minValue +", max=" +maxValue +", out=" +newValue );
94+ // Log.e("ScrollGestureLayout", "curr="+currValue+", min="+minValue+", max="+maxValue+", out="+newValue);
9595 return newValue ;
9696 }
9797
0 commit comments