Pass touch events on to the ScaleGestureDetector

Note that the listener doesn't do anything with the scale gestures yet,
though. I guesss either a new type of VCL event is needed for zooming, or then
we could fake entering of Control-+ and Control-- key events (or whatever the
default bindings for zoom in and out are).

Change-Id: Ib2ba138dd3e7874f85e9fc9fb7ac7198fa6212d3
This commit is contained in:
Tor Lillqvist 2013-03-01 00:32:05 +02:00
parent 18df08f974
commit e63165c685

View File

@ -226,6 +226,8 @@ public class Desktop
@Override public boolean onTouchEvent(MotionEvent event)
{
gestureDetector.onTouchEvent(event);
if (!renderedOnce)
return super.onTouchEvent(event);