Abstract: An electronic device includes a touch sensor, a touch sensor, and a controller. The touch sensor is configured for detecting a touch action on a touchscreen and reporting touch information. The proximity sensor is configured for detecting nearness of a target object and reporting a proximity information. The controller is connected to the touch sensor and the proximity sensor, the touch sensor and the proximity sensor are putted in a same circuit, such that the touch sensor and the proximity sensor are controlled by the same controller. When the proximity sensor detecting nearness of the target object, the controller will prevent touch report event.