Handling onTouch events in android
===

So I have an autoScrolling scrollView in my class and I want to intercept the user onTouch event so that it stops the scrolling when they click on the scrollView. How will I implement this functionality? I know it has something to do with Overriding the onTouchEvent function, but when I Override this it doesn't work.




    @Override
    	public boolean onTouchEvent(MotionEvent event) {
    		switch (event.getAction()) {
    		case MotionEvent.ACTION_POINTER_1_DOWN:
    			stopAutoScrolling();
    		case MotionEvent.ACTION_POINTER_1_UP:
    			startAutoScrolling();
    		}
    		return true;
    	}