mulwidgets/gesturehelper/src/gesturehelperimpl.cpp
changeset 3 4526337fb576
parent 0 e83bab7cf002
child 12 e3debc045864
child 16 65e535be25c8
equal deleted inserted replaced
2:b1a1f09f9110 3:4526337fb576
   284                     Reset();
   284                     Reset();
   285                     }
   285                     }
   286                 }
   286                 }
   287             else if( iPointerCount == 2 )
   287             else if( iPointerCount == 2 )
   288                 {
   288                 {
       
   289                 // This case is similar to reciving a pointer up on the pointer
       
   290                 // on which the second down is recieved. We reset all the earlier points
       
   291                 // recieved on this pointer because we assume that some pointer up got
       
   292                 // missed in between.
       
   293             
   289                 // if pointer count is already 2, then reset the array of pointer for 
   294                 // if pointer count is already 2, then reset the array of pointer for 
   290                 // which a down event is recieved, and continue handling in normal way
   295                 // which a down event is recieved, and continue handling in normal way
       
   296                 // Fix for error crash in photos fullscreen
       
   297                 // Like above if you reset the pointer array for which the down event
       
   298                 // is recieved the second time then in thecase of, 0 down, 1 down, 0 down
       
   299                 // iPoints will be null.
       
   300                 // Here whenever reseting it to single pointer havndling, always iPoints should have
       
   301                 // the data. Hence the first parameter should always be true.
       
   302                 // Fix is iGesture->ResetToLastPoint(pointerNumber != 0,pointerNumber != 0);
       
   303                 // is changed to iGesture->ResetToLastPoint( ETrue,pointerNumber != 0);
   291                 iPointerCount = 1; 
   304                 iPointerCount = 1; 
   292                 iCurrentPointer = pointerNumber == 0 ? 1 : 0;
   305                 iCurrentPointer = pointerNumber == 0 ? 1 : 0;
   293                 iGesture->ResetToLastPoint(pointerNumber != 0,pointerNumber != 0);
   306                 iGesture->ResetToLastPoint( ETrue,pointerNumber != 0);
       
   307                 iGesture->SetSingleTouchActive();
   294                 }
   308                 }
   295 
   309 
   296             if(iPointerCount == 0)
   310             if(iPointerCount == 0)
   297                 {
   311                 {
   298                 iPointerCount = 1;
   312                 iPointerCount = 1;