An electronic device includes a panel and a press detector configured to detect a press. The press detector detects the press on the basis of a force in a direction different from the press direction of the panel.