05-28-2012 03:11 AM
Hi all,
I'm using the following sample to hadle Pinch Zoom event.
protected boolean touchEvent(TouchEvent message)
{
switch(message.getEvent())
{
case TouchEvent.GESTURE:
TouchGesture gesture = message.getGesture();
switch(gesture.getEvent())
{
case TouchGesture.PINCH_END:
Dialog.alert("Focal point: " + message.getX(1)
+ ", " + message.getY(1)
+ "\nFinal zoom value: " + gesture.getPinchMagnitude());
return true;
}
}
return false;
}But it's not woked for me. I put the break point and it never hit it. My app can not handle this event.
Someone can tell me why?
Solved! Go to Solution.
05-30-2012 09:39 AM
Is touchEvent being called at all, or just not your pinch code? Where are you overriding touchEvent? Do you have other fields on the screen that may be capturing the event?
05-31-2012 02:17 AM