Patent attributes
According to certain embodiments, an electronic device comprises: a flexible display; at least one sensor configured to sense changes in a size of a viewable portion of the flexible display; at least one processor operatively connected to the flexible display and the at least one sensor; and a memory operatively connected to the at least one processor, wherein the memory stores instructions that, when being executed, cause the at least one processor to perform a plurality of operations comprising: displaying a first screen on the flexible display; sensing a change in the size of the viewable portion of the flexible display through the at least one sensor; displaying a list comprising at least one selectable item in at least a partial region of the flexible display during the changing of the size of the viewable portion of the flexible display; detecting that the changing of the size of the viewable portion of the flexible display has stopped; in response to detecting the size of the viewable portion of the flexible display has stopped, displaying the first screen corresponding to the viewable portion of the flexible display with the changed size; and in response to returning of the size of the viewable portion of the flexible display to an original size without completing the change in the size of the viewable portion of the flexible display, displaying a second screen corresponding to a selectable item while the size of the viewable portion of the flexible display changes, among items included in the list, on the viewable portion of the flexible display having the original size.