2224 case TPointerEvent::EDrag: |
2224 case TPointerEvent::EDrag: |
2225 { |
2225 { |
2226 // for themable support - clear Pressed Down State when dragging |
2226 // for themable support - clear Pressed Down State when dragging |
2227 oldRow = iListBox->View()->CurrentItemIndex(); |
2227 oldRow = iListBox->View()->CurrentItemIndex(); |
2228 oldColumn = iColumn; |
2228 oldColumn = iColumn; |
2229 iListBox->HandlePointerEventL(aPointerEvent); |
2229 newColumn = iListBox->PointerEventColumn(aPointerEvent.iPosition); |
2230 newRow = iListBox->View()->CurrentItemIndex(); |
2230 newRow = pointerIndex; |
2231 newColumn = iColumn; |
|
2232 if (newRow != oldRow || newColumn != oldColumn) |
2231 if (newRow != oldRow || newColumn != oldColumn) |
2233 { |
2232 { |
2234 CalcDayFromColumn(); |
2233 iHourChange = ETrue; |
2235 SetActiveContextFromHighlightL(); |
|
2236 if (newColumn != oldColumn) |
|
2237 { |
|
2238 WeekView().SetStatusPaneFromActiveContextL(); |
|
2239 } |
|
2240 } |
2234 } |
2241 break; |
2235 break; |
2242 } |
2236 } |
2243 case TPointerEvent::EButton1Up: |
2237 case TPointerEvent::EButton1Up: |
2244 if(isItem && |
2238 if(isItem && |
2245 iView->MenuBar()->IsDisplayed() == EFalse) |
2239 iView->MenuBar()->IsDisplayed() == EFalse && !iHourChange) |
2246 { |
2240 { |
2247 iServices.IssueCommandL( ECalenForwardsToDayView ); |
2241 iServices.IssueCommandL( ECalenForwardsToDayView ); |
2248 } |
2242 } |
|
2243 iHourChange = EFalse; |
2249 break; |
2244 break; |
2250 default: |
2245 default: |
2251 break; |
2246 break; |
2252 } |
2247 } |
2253 } |
2248 } |