Now hit the tray from the side!
The orange sits on the top of the paper roll. It is at rest and wants to stay that way. Now, because you snap the tray so quickly, the paper roll follows its direction. However, you leave the orange no chance to follow, and the gravity pulls it down into the cup. If you were to pull the tray slower – the orange would follow it.