diff -r f9bb0fca356a -r 0fd27995241b javauis/eswt_akn/org.eclipse.ercp.swt.s60/native/src/swtdisplaybase.cpp --- a/javauis/eswt_akn/org.eclipse.ercp.swt.s60/native/src/swtdisplaybase.cpp Fri Apr 30 10:40:48 2010 +0300 +++ b/javauis/eswt_akn/org.eclipse.ercp.swt.s60/native/src/swtdisplaybase.cpp Tue May 11 16:07:20 2010 +0300 @@ -790,7 +790,7 @@ return iRevertPointerEvent || iLongTapDetected; } -void ASwtDisplayBase::SetRevertPointerEvent(TBool aStatus) +void ASwtDisplayBase::SetRevertPointerEvent(TBool aStatus) { iRevertPointerEvent = aStatus; } @@ -1082,6 +1082,8 @@ { iLongTapControl = NULL; iLongTapDetected = EFalse; + + // The Shell is required to already have handled the pointer down. MSwtControl* ctrl = iUiUtils->GetPointerGrabbingControl(); // No long tap animation on scrollbars or trimings. @@ -1091,7 +1093,7 @@ iLongTapControl = ctrl; } } - + iLongTapPointerEvent = aPointerEvent; if (iLongTapControl) @@ -1128,7 +1130,7 @@ return; } - // Will be switched back after the popup menu closes + // Will be switched back after the popup menu closes // and the late pointer up event was delivered. iLongTapDetected = ETrue; @@ -1148,7 +1150,7 @@ event.iType = TPointerEvent::EButton1Up; iLongTapControl->HandlePointerEventL(event); // revert } - + // Just to clear the flags. CancelLongTapAnimation(); }