An operation detecting device of an opening and closing body for a vehicle, comprising: a detecting section that is configured to detect an operation by a user with respect to an opening and closing body of a vehicle; an input section that is configured to receive an opening and closing body motion signal which indicates whether or not the opening and closing body is in motion or idle; a determination section that is configured to determine whether or not the operation is performed using different detection conditions for a case in which the opening and closing body is in motion and a case in which the opening and closing body is idle; and an output section that is configured to output a control signal which causes the opening and closing body to move or stop based on the determination result of the determination section, wherein the detecting section includes a plurality of electrodes (112, 113) for detecting a plurality of electrostatic capacitance values that are changed due to the operation, the determination section is configured to determine whether or not the operation is performed, based on the change of the electrostatic capacitance value, when the opening and closing body is idle, the determination section is configured to determine that the operation is performed in a case in which the plurality of the electrostatic capacitance values detected by the plurality of electrodes shows a variation pattern corresponding to a predetermined gesture of the user, and when the opening and closing body is in motion, the determination section is configured to determine that the operation is performed in a case where it is detected that at least one of the plurality of electrostatic capacitance values detected by the plurality of electrodes is changed to a predetermined threshold or more due to the operation, and characterized in that when the opening and closing body is in motion, the determination section is configured to determine whether or not the operation is performed based on the electrostatic capacitance values detected by a larger number of electrodes of the plurality of electrodes than when the opening and closing body is idle. a detecting section that is configured to detect an operation by a user with respect to an opening and closing body of a vehicle; an input section that is configured to receive an opening and closing body motion signal which indicates whether or not the opening and closing body is in motion or idle; a determination section that is configured to determine whether or not the operation is performed using different detection conditions for a case in which the opening and closing body is in motion and a case in which the opening and closing body is idle; and an output section that is configured to output a control signal which causes the opening and closing body to move or stop based on the determination result of the determination section, wherein the detecting section includes a plurality of electrodes (112, 113) for detecting a plurality of electrostatic capacitance values that are changed due to the operation, the determination section is configured to determine whether or not the operation is performed, based on the change of the electrostatic capacitance value, when the opening and closing body is idle, the determination section is configured to determine that the operation is performed in a case in which the plurality of the electrostatic capacitance values detected by the plurality of electrodes shows a variation pattern corresponding to a predetermined gesture of the user, and when the opening and closing body is in motion, the determination section is configured to determine that the operation is performed in a case where it is detected that at least one of the plurality of electrostatic capacitance values detected by the plurality of electrodes is changed to a predetermined threshold or more due to the operation, and characterized in that when the opening and closing body is in motion, the determination section is configured to determine whether or not the operation is performed based on the electrostatic capacitance values detected by a larger number of electrodes of the plurality of electrodes than when the opening and closing body is idle.