Door Latch Groove Design
The movable parts of the latch can rotate 360°, and there will be a groove every 90°, which allows the ball to rest in it and suspend the movement of the parts.
This way it not only swings around a full circle, but also stops at a horizontal or vertical angle.
This way you can snap it to any side you want when its idle.