Patent attributes
A method for operating an electronic device includes rotating a first portion of a flexible touchscreen with respect to a second portion of the flexible touchscreen around a folding axis; detecting, self-capacitances sensed in a folding area of the flexible touchscreen using a self-sensing scan, where a first side of the folding area is on the first portion of the flexible touchscreen and a second side of the folding area is on the second portion of the flexible touchscreen, and the first side and the second side are separated by a folding axis; determining, a current strength sensed by the flexible touchscreen in the folding area based on the self-capacitances in the folding area; and determining, a folding angle of the first portion of the flexible touchscreen with the second portion of the flexible touchscreen around the folding axis based on the current strength in the folding area.