TouchEnded never called if device onPause()

In drag and drop game, I usually move things in touchMoved and return it to the original position in touchEnded. But touchEnded never called if device locked or android home button pressed while moving touch, then when back in game, dragged item will not return. in some games it makes a bug.
is it an engine bug or is it designed just like that?

engine just catch system event to post the event. So touch ended is not invoked is not an engine bug. Return to this issue, may be the game logic should listen the event of device locking or home button pressed. I am not sure if there is better solution.

Thanks, then i should think of new logic for next project, for now i edited Cocos2dxGLSurfaceView.java onPause() function for the fastest solution.