Patent attributes
A method of an electronic device for processing gesture is provided. The method includes, in response to an input of a hovering gesture to a flexible display of the electronic device, wherein the flexible display is divided in response to folding of the electronic device into a first area and a second area based on a folding line, sensing the hovering gesture in the first area and the second area, respectively, and determining a hovering point corresponding to the hovering gesture, based on the sensed positions of the first area and the second area, respectively. Accordingly, a hovering gesture can be detected with increased accuracy.