We have a block on a wedge like this;
The block is given an initial velocity $v$,and the wedge is also movable .
So when the block reaches its maximum height on the wedge,the block and wedge are both moving with the same velocity (in the $+x$ direction).
Let's consider a system with the block and wedge
As there were no external forces on the system from when the block was given the velocity $v$, the velocity of the center of mass of the system is constant.
But as the block is also moving upwards, the center of mass (of the system) should also move upwards,right? But...the velocity of the center of mass at the initial time (when the block had velocity $v$ in the $+x$ direction) , was purely at the $+x$ direction,but now it also has a component of velocity in the $+y$ direction (???)
So the velocity of the COM(of the system) changed its direction,that means velocity of COM of the system is not constant,which can't be the case..right? Because $F_{ext}=0$
Where did I go wrong?