Patent ID: 11893215
Assignee: SAMSUNG ELECTRONICS CO., LTD.
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 0:
1. An electronic device comprising:
a housing;
a flexible display having a first portion visible from an outside and a second portion extending from the first portion and accommodated in an inner space of the housing in a slide-in state, wherein a visible area of the flexible display from the outside is expanded in response to a change from the slide-in state to a slide-out state according to a sliding of the housing;
a sensor configured to detect a sliding of the flexible display;
a memory; and
a processor operatively connected to the flexible display, the sensor, and the memory,
wherein the processor is configured to:
identify a first distance for the sliding of the flexible display through the sensor in response to the change from the slide-in state to the slide-out state, and control the flexible display to display a user interface based on the first distance,
identify touch information from a touch on at least a partial region of the flexible display, wherein at least the partial region is determined based on the first distance,
adjust at least one of a size or position of the user interface based on the first distance and the touch information, and
control the flexible display to display the adjusted user interface through the flexible display.