- // It's only possible on touch-down, which is the position we want to hit-test against when the pan actually starts
- mPossiblePanPosition = panEvent.currentPosition;
+ HitTestAlgorithm::Results hitTestResults;
+ if( HitTest( scene, panEvent.currentPosition, hitTestResults ) )
+ {
+ SetActor( &GetImplementation( hitTestResults.actor ) );
+ mPossiblePanPosition = panEvent.currentPosition;
+ }
+