Right Mouse Click not behaving like previous games

When I press the right mouse button to task units they sometimes do and sometimes don’t. This is getting annoying when it comes to tasking to resources only to find that the command was not detected. Is there a legacy option for the mouse and can someone explain the new mouse system, it isn’t intuitive to me.

disable the moving around the map with right click in settings.