Patent ID: 11893215

Abstract:
According to various embodiments, an electronic device may include: a flexible display having a first portion disposed to be visible from an outside and a second portion extending from the first portion and accommodated in an inner space to be invisible from the outside in a slide-in state; a housing whose having a variable size wherein the flexible display is configured to be expanded in response to a change from the slide-in state to a slide-out state; a sensor disposed in the inner space and configured to detect a moving distance of the flexible display; a memory; and a processor operatively connected to the flexible display, the sensor, and the memory. The processor may be configured to: identify a first distance for the flexible display through the sensor in response to the change from the slide-in state to the slide-out state, control the display to display a user interface through the flexible display based on the first distance, detect a touch on at least a partial region of the flexible display, identify a second distance for the flexible display based on coordinate information corresponding to the detected touch, adjust a size or position of the user interface based on a difference value between the first distance and the second distance, and control the display to display the adjusted user interface through the flexible display.