Better to treat it as opaque. We don't need optimizations now. Go for robustness instead.

For gesture detector, you can set GestureDetector.SCALE_THRESHOLD and .THRESHOLD_SMOOTHING to tune the gesture.