idlehomescreen/xmluirendering/renderingplugins/xntexteditorfactory/src/xntexteditoradapter.cpp
equal
deleted
inserted
replaced
467 } |
467 } |
468 } |
468 } |
469 } |
469 } |
470 } |
470 } |
471 CCoeControl::HandleResourceChange( aType ); |
471 CCoeControl::HandleResourceChange( aType ); |
|
472 } |
|
473 |
|
474 // ----------------------------------------------------------------------------- |
|
475 // CXnTextEditorAdapter::HandlePointerEventL |
|
476 // |
|
477 // ----------------------------------------------------------------------------- |
|
478 // |
|
479 void CXnTextEditorAdapter::HandlePointerEventL( const TPointerEvent& aPointerEvent ) |
|
480 { |
|
481 TPointerEvent pointerEvent( aPointerEvent ); |
|
482 TRect rect( iEditor->TextView()->ViewRect() ); |
|
483 TPoint point( aPointerEvent.iPosition ); |
|
484 |
|
485 // this opens partial screen also when margin is tapped |
|
486 if( !IsFlagSet( iSplitInputFlags, ESplitInputOpen ) ) |
|
487 { |
|
488 if( point.iX < rect.iTl.iX ) |
|
489 { |
|
490 pointerEvent.iPosition.iX = rect.iTl.iX; |
|
491 } |
|
492 else if( point.iX > rect.iBr.iX ) |
|
493 { |
|
494 pointerEvent.iPosition.iX = rect.iBr.iX; |
|
495 } |
|
496 |
|
497 if( point.iY < rect.iTl.iY ) |
|
498 { |
|
499 pointerEvent.iPosition.iY = rect.iTl.iY; |
|
500 } |
|
501 else if( point.iY > rect.iBr.iY ) |
|
502 { |
|
503 pointerEvent.iPosition.iY = rect.iBr.iY; |
|
504 } |
|
505 } |
|
506 |
|
507 CXnControlAdapter::HandlePointerEventL( pointerEvent ); |
472 } |
508 } |
473 |
509 |
474 // ----------------------------------------------------------------------------- |
510 // ----------------------------------------------------------------------------- |
475 // CXnTextEditorAdapter::HandleScreenDeviceChangedL |
511 // CXnTextEditorAdapter::HandleScreenDeviceChangedL |
476 // |
512 // |