The disclosed technology is directed to a touch panel device used in an endoscope device. The touch panel device includes a display portion having a display panel and a touch panel formed thereto and configured to display an endoscope image on the display panel acquired by an endoscope having a bending portion. A processor is configured to control the bending portion so as to perform a bending operation when a user keeps performing a first operation on the touch panel in a first predetermined duration or more.