camerauis/cameraapp/generic/src/CamCaptureSetupSlider.cpp
changeset 1 f5ec9446e5bf
parent 0 1ddebce53859
child 10 8c55c525d5d7
equal deleted inserted replaced
0:1ddebce53859 1:f5ec9446e5bf
   963 // Handles slider pointer events
   963 // Handles slider pointer events
   964 // -----------------------------------------------------------------------------
   964 // -----------------------------------------------------------------------------
   965 //
   965 //
   966 void CCamCaptureSetupSlider::HandlePointerEventL(const TPointerEvent& aPointerEvent)
   966 void CCamCaptureSetupSlider::HandlePointerEventL(const TPointerEvent& aPointerEvent)
   967     {   
   967     {   
   968    
   968     if(!Rect().Contains(aPointerEvent.iPosition))
       
   969         {
       
   970         return;
       
   971         }
   969     CCoeControl::HandlePointerEventL( aPointerEvent );
   972     CCoeControl::HandlePointerEventL( aPointerEvent );
   970 
   973 
   971     // This is the max bitmap offset from the top of the shaft that the thumb can be
   974     // This is the max bitmap offset from the top of the shaft that the thumb can be
   972     TInt maxVOffset = iShaftLayout.Rect().Size().iHeight - iBitmapThumb->SizeInPixels().iHeight;
   975     TInt maxVOffset = iShaftLayout.Rect().Size().iHeight - iBitmapThumb->SizeInPixels().iHeight;
   973 
   976