-
公开(公告)号:US20190102058A1
公开(公告)日:2019-04-04
申请号:US16186855
申请日:2018-11-12
Applicant: HUAWEI TECHNOLOGIES CO., LTD.
Inventor: Huihai SHEN , Dapeng ZHANG , Yunjian YING , Qiulin CHEN
IPC: G06F3/0485 , G06F3/0482
Abstract: A method for controlling media resource loading including: listening to a touchscreen sliding event; when the touchscreen sliding event is obtained through the listening, detecting whether a user interface (UI) inertially scrolls; measuring a speed of the inertial scrolling when it is detected that the UI inertially scrolls; determining whether an initial speed of the inertial scrolling is greater than a first speed threshold; stopping loading a to-be-loaded media resource on the UI when the initial speed is greater than the first speed threshold. In technical solutions of the present invention, media resource loading can be dynamically controlled depending on whether a UI inertial scrolling speed is greater than a preset speed threshold, so that on the premise of ensuring low energy consumption and UI smoothness, a white block problem is avoided and a UI scrolling speed is prevented from being limited, thereby improving user experience.