CN115004142A - Screen scrolling method and device, electronic equipment and computer readable medium - Google Patents

Screen scrolling method and device, electronic equipment and computer readable medium Download PDF

Info

Publication number
CN115004142A
CN115004142A CN202080094693.9A CN202080094693A CN115004142A CN 115004142 A CN115004142 A CN 115004142A CN 202080094693 A CN202080094693 A CN 202080094693A CN 115004142 A CN115004142 A CN 115004142A
Authority
CN
China
Prior art keywords
content
display position
page
scrolling
screen
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202080094693.9A
Other languages
Chinese (zh)
Inventor
范文中
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Shenzhen Huantai Technology Co Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Shenzhen Huantai Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd, Shenzhen Huantai Technology Co Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Publication of CN115004142A publication Critical patent/CN115004142A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0485Scrolling or panning

Abstract

The application discloses a screen scrolling method, a screen scrolling device, electronic equipment and a computer readable medium, and relates to the technical field of computers, wherein the method comprises the following steps: acquiring a first display position corresponding to first content currently selected by a user; when the user selects the next content, taking the next content selected by the user as the second content; acquiring a second display position corresponding to the second content; determining a scroll distance according to the first display position and the second display position; and executing the scrolling operation on the screen according to the scrolling distance. Therefore, a scroll operation is performed on the screen according to the first display position and the second display position, thereby enabling a scroll distance of the screen to refer to positions of two contents selected by the user, rather than a fixed value.

Description

Screen scrolling method and device, electronic equipment and computer readable medium Technical Field
The present application relates to the field of computer technologies, and in particular, to a screen scrolling method and apparatus, an electronic device, and a computer readable medium.
Background
At present, a screen of an electronic device can display a plurality of data, a user needs to continue to process other data after processing one line of data, the screen needs to perform a scrolling operation due to the position of the other data different from the data processed by the user before, and the scrolling operation is not reasonable enough due to the existing scrolling distance being a fixed value.
Disclosure of Invention
The application provides a screen scrolling method, a screen scrolling device, an electronic device and a computer readable medium, so as to overcome the defects.
In a first aspect, an embodiment of the present application provides a screen scrolling method, where the method includes: acquiring a first display position corresponding to first content currently selected by a user; when the user selects the next content, taking the next content selected by the user as the second content; acquiring a second display position corresponding to the second content; determining a scroll distance according to the first display position and the second display position; and executing a scrolling operation on the screen according to the scrolling distance.
In a second aspect, an embodiment of the present application further provides a screen scrolling device, including: the device comprises a first acquisition unit, a determination unit, a second acquisition unit, a second determination unit and a processing unit. The first obtaining unit is used for obtaining a first display position corresponding to the first content currently selected by the user. And the determining unit is used for taking the next content selected by the user as the second content when the next content is selected by the user. And the second acquisition unit is used for acquiring a second display position corresponding to the second content. And the second determining unit is used for determining the scroll distance according to the first display position and the second display position. And the processing unit is used for executing the scrolling operation on the screen according to the first display position and the second display position.
In a third aspect, an embodiment of the present application further provides an electronic device, which includes: one or more processors; a memory; a screen; one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more applications configured to perform the above-described method.
In a fourth aspect, the present application also provides a computer-readable storage medium, where a program code executable by a processor is stored, and when executed by the processor, the program code causes the processor to execute the above method.
According to the screen scrolling method, the device, the electronic equipment and the computer readable medium, when a user selects a first content, a first display position corresponding to the first content is obtained, then when the user selects a next content, a second display position of the next content is determined, and a scrolling operation is performed on the screen according to the first display position and the second display position, so that the scrolling distance of the screen can refer to the positions of the two contents selected by the user instead of a fixed value.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a diagram illustrating a layout of content of a page provided by an embodiment of the present application;
FIG. 2 is a schematic diagram illustrating a layout of content of a page provided by another embodiment of the present application;
FIG. 3 is a schematic diagram illustrating a layout of content of a page provided by yet another embodiment of the present application;
FIG. 4 is a flow chart illustrating a method of scrolling a screen according to an embodiment of the present application;
fig. 5 is a schematic diagram illustrating a screen display of first content and second content provided by an embodiment of the present application;
FIG. 6 is a flow chart illustrating a method of scrolling a screen according to another embodiment of the present application;
FIG. 7 is a flow chart illustrating a method of scrolling a screen according to a further embodiment of the present application;
fig. 8 is a diagram illustrating a screen display of first content and second content provided by another embodiment of the present application;
fig. 9 is a diagram illustrating a screen display of first content and second content provided by another embodiment of the present application;
FIG. 10 is a block diagram illustrating a screen scrolling device according to an embodiment of the present application;
FIG. 11 is a block diagram illustrating a screen scrolling device according to another embodiment of the present application;
fig. 12 is a schematic diagram of an electronic device provided by an embodiment of the present application;
fig. 13 is a storage unit for storing or carrying program code for implementing a screen scrolling method according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.
In many web pages, mouse scrolling functionality is provided via a browser mechanism. Upon input, a mouse scroll action is used to effect a scrolling operation of the screen to cause the page to scroll up or down. The actual scrolling steps in the web page depend on the browser page display. For example, a browser has a setting where each mouse scroll step corresponds to 10 pixel steps, then when the user scrolls 10 steps with the mouse, the page will shift 100 pixels up or down depending on the orientation. Such an implementation ensures a smooth and linear search on the web page.
When the content needing to be displayed through the screen is more, the content can be displayed in a paging mode. Specifically, the content may be displayed on the page in a manner that the page is divided into a plurality of rows according to the content to be displayed, and each row is used for displaying one content. Specifically, the page performs layout calculation and rendering on the acquired content. The layout process is the corresponding position of each content in the page, and the position is the line number in the page corresponding to the content.
As shown in fig. 1, the page corresponds to a content with a row number h1, h2, h3, h4, a content with a row number of "h" 4, a content with a row number of "h 3" as shown in fig. 1. The line sequence number corresponding to each content is used for indicating the display position of the content on the page, as shown in fig. 1, the display position of the content corresponding to the line sequence number 1 on the page is at the head line of the page, while the display position of the content corresponding to the line sequence number 1 on the screen depends on the display area of the page on the screen, if the display area of the page on the screen is the whole display area of the screen, the display position of the content corresponding to the line sequence number 1 on the screen is at the top of the display area of the screen. If the display area of the page on the screen is the lower half area of the whole display area of the screen, the display position of the content corresponding to the row sequence number 1 on the screen is the top of the lower half area of the screen, that is, the content can be located in the middle of the screen.
Currently, the display modes of the contents of a plurality of pages on the screen include a paging mode and a waterfall mode.
As shown in fig. 2, fig. 2 shows a schematic diagram of a paging style. The plurality of contents are displayed on the screen in a paging mode, one page of contents can be displayed on the screen in the paging mode, and then a user clicks an operation key corresponding to the next page or the previous page to display the next page or the previous page of contents of the current page on the screen. Therefore, when the user processes the content on the page, after the content of the current page is processed, the user enters the next page by clicking to process the content of the next page.
However, there is a drawback that the user frequently operates when processing the contents in the paginated form. If the content amount processed by the user is large and the processing speed of the user is high, the business personnel can turn pages frequently if the content amount of a single page is too small. Especially in a scenario where the user processes the content via the keyboard, the service person will have to frequently use the mouse to click the next button to enter the next page of the current page. The user needs to switch between the mouse and the keyboard continuously, which is cumbersome.
As shown in fig. 3, fig. 3 shows a schematic view of a waterfall flow form. The waterfall flow form is an infinite rolling screen waterfall flow form, namely JavaScript judges whether the last contents of the current page are to be processed or not, if the processed contents are to be the bottom contents of the page, the next page of contents are automatically loaded to the bottom of the page, and the effect of loading the contents without manually changing the page is realized. As shown in fig. 3, a scroll bar is included in the display interface, and the scroll bar can be scrolled up and down to implement a scrolling operation of the screen, so that contents of different pages can be displayed on the screen. The screen scrolling operation, that is, the control of the scroll bar, may be performed through an input device such as a mouse, a keyboard, or a touch screen, and when the screen is the touch screen, a user may directly input a sliding gesture on the screen to perform the screen scrolling operation, for example, slide up or down, however, in the existing manner of controlling the screen scrolling operation, the scrolling distance is often fixedly set, for example, the number of steps of the mouse scrolling and the scrolling distance of the screen have a certain relationship, for example, the mouse scrolls 10 steps, and the screen shifts 100 pixels up or down.
Taking the operation of executing screen scrolling through the up-down shortcut key as an example, in the actual service processing, the scrolling distance when the up-down shortcut key scrolls the screen is a fixed value and may not be consistent with the display height of the content in the page, which may cause the content line currently performing the service processing to be scrolled out of the screen or scrolled out of the view field of the user, and the user needs to scroll the screen with the help of a mouse to find the content.
Therefore, in the existing screen scrolling operation, on one hand, the scrolling distance is unreasonable, and when the screen is scrolled, the content operated by the user is easy to move out of the visual field range of the user, on the other hand, the screen scrolling operation is complicated, and when the user processes the content displayed on the page by using the keyboard, the user needs to frequently use the mouse to scroll the screen and then switch to the keyboard operation.
In order to overcome at least one of the above-mentioned drawbacks, the present application provides, as an implementation, a screen scrolling method applied to an electronic device including a screen, and specifically, as shown in fig. 4, the method includes: s401 to S405.
S401: and acquiring a first display position corresponding to the first content currently selected by the user.
Wherein the first display position may be a display position of the first content currently on the screen. As an implementation manner, the obtaining manner of the first display position corresponding to the first content may be that a page corresponding to the first content is determined, an arrangement position of the first content in the page is determined, a display area corresponding to the page on the screen is determined, the display area corresponds to a position area of the screen, and the first display position corresponding to the first content is determined according to the arrangement position of the first content in the page and the display area corresponding to the page on the screen.
Specifically, assuming that the page corresponding to the first content is a first page, it should be noted that the first page is named as a first page for representing the corresponding page of the first content, and is not limited to be the first page. The display area of the first page on the screen is the first display area, and the plurality of contents in the first page may be distributed and displayed in the page according to a preset distribution rule, for example, the page may be divided into a plurality of rows, each row corresponds to one content, and each content corresponds to one row number, the plurality of rows are distributed in sequence according to the size of the page, and the row numbers of the rows in the size increase in sequence from the top. The first display area corresponding to the page is divided by the plurality of lines, each line corresponds to one sub-display area, and the sub-display area corresponds to a position in the first display area, so that the display position of each line on the screen can be determined.
As another embodiment, the first display position may also be an arrangement position of the first content in the corresponding first page. The display position of the content on the page may be set according to all the content in the page when the page is rendered, as described above, the page may be divided into a plurality of page sub-regions, each sub-region is used for displaying one content, and each sub-region corresponds to one row number, so that the position of each content in the page can be determined according to the row number.
The method for acquiring the content selected by the user may be to acquire a selection operation of the user received by the electronic device, and determine the selected content corresponding to the selection operation. Specifically, a check box corresponding to the content is further displayed at a display position corresponding to the content displayed on the screen, when the user operates the check box, the user can determine that the user inputs a check operation, and can determine the check box corresponding to the check operation, so as to determine the content corresponding to the check box, and further determine the first content selected by the user.
As another embodiment, whether the content is selected may also be determined according to a state change of the content. In some embodiments, the state of the content includes a read state and an operational state, wherein the read state indicates that the content is in a readable but uneditable state, and the operational state, in which the content can be edited and processed, e.g., in which the content can be modified and copied.
The user can change the state of the content by a specified operation, for example, if the default state of the content is a reading state, the content enters an operation loading when clicking the content, and if clicking other content, the content returns to the reading state, and the other clicked content changes to the operating state. The clicking operation may include a touch operation for the touch screen, and may further include clicking an area corresponding to the content through a mouse or a keyboard. The content may be clicked by the keyboard in a manner that a selection mark is displayed at the position of the content after the content is selected, and the user may move the selection mark through the keyboard, move the selection mark to other content, and select the other content. The selected mark may be a display content having a certain display effect, for example, the display content may be a selection frame or a highlighted area, or may be a cursor. It can be determined whether the content is selected by detecting a change in the state of the content displayed on the screen.
S402: and when the user selects the next content, taking the next content selected by the user as the second content.
S403: and acquiring a second display position corresponding to the second content.
For the implementation of determining the next selected content and the implementation of the second display position corresponding to the content, reference may be made to the implementation of S401, which is not described herein again.
S404: and determining a scroll distance according to the first display position and the second display position.
In the embodiment of the present application, whether the display position corresponding to the content is the display position of the content on the screen or the arrangement position of the content in the corresponding page, the corresponding scroll state of the screen when the different content is displayed on the screen can be determined.
Specifically, when the scroll state of the screen is in different states, the contents displayed on the screen are different, or the same content is displayed in different positions on the screen, for example, a certain content is displayed in a top position of the screen when the scroll state of the screen is in a first state, and is displayed in a bottom position of the screen when the scroll state of the screen is in a second state. Wherein, the scroll state of the screen can be the position of the scroll bar, and different positions of the scroll bar correspond to different scroll states of the screen.
Therefore, when the second content is selected, the display position of the second content on the screen is the second display position, and the second display position, that is, the display position of the second content can be changed by scrolling the screen.
As shown in fig. 5, the scroll component of the screen includes a scroll bar and a slider 501, and when the slider 501 slides along the scroll bar on the screen, the position of the slider 501 is different, and the content displayed on the screen is different or the same content is displayed on the screen in different positions.
As shown in fig. 5, a first display position P1 corresponding to the first content and a second display position P2 corresponding to the second content, assuming that the user selects the first content and processes the first content, and the slider 501 of the screen is located at a position G1, at this time, the position corresponding to the second content is the second display position P2, that is, in the case where the slider 501 is not slid, the display position of the second content on the screen is P2.
The sliding of the sliding block 501 is dragged by the mouse or the sliding of the sliding block 501 can be operated by the rolling of the roller of the mouse, so that the display position of the second content is adjusted, the second content is displayed at the display position suitable for the user to observe, however, the rolling distance is often fixed and the setting is not reasonable enough in the rolling mode of the operation screen.
In the embodiment of the application, the scroll distance is determined according to the first display position and the second display position. As an embodiment, a space may be determined according to the first display position and the second display position, and a scroll distance may be determined according to the space, so that when the screen is scrolled according to the scroll distance, the display position of the second content is changed to be in the vicinity of the first display position, so that the content usage that the user needs to handle is located in the vicinity of one position. In addition, on the basis of the interval, the scroll distance may be determined based on information such as the area or height of the display area occupied by the first content, and for a specific scroll distance determination method, reference is made to the subsequent embodiments, which are not described herein again.
S405: and executing a scrolling operation on the screen according to the scrolling distance.
As an embodiment, the scroll operation refers to an operation of scrolling the display content on the screen, and specifically, the direction of the scrolling may be scrolling along the upper or lower side of the screen. As shown in fig. 5, the scrolling operation of the screen is realized by the sliding of the slider 501, the closer the slider 501 is to the top of the screen, the content of the page near the top or the content of the page at the front is displayed, and the closer the slider 501 is to the top of the screen, the content of the page near the bottom or the content of the page at the back is displayed.
The scroll distance corresponds to a moving distance of the content on the screen, and specifically, the scroll distance corresponds to a sliding distance of the slider, and specifically, a corresponding relationship between the scroll distance and the sliding distance of the slider may be preset, for example, if the scroll distance is a number of pixels, the sliding distance of the slider is also a number of pixels.
An embodiment of the present application provides a screen scrolling method, which is applied to an electronic device including a screen as an implementation manner, and specifically, as shown in fig. 6, the method includes: s601 to S607.
S601: and acquiring a first display position corresponding to the first content currently selected by the user.
S602: and when the user selects the next content, taking the next content selected by the user as the second content.
S603: and acquiring a second display position corresponding to the second content.
S604: determining a height interval between the first display position and the second display position as a first height.
If the first content and the second content are simultaneously displayed in one page of the screen, the first display position and the second display position are a display position of the first content on the screen and a display position of the second content on the screen, respectively. The spacing between the first display position and the second display position may be a distance in a direction between the top and the bottom of the screen, i.e. a distance of the height of the screen.
As an embodiment, the first display position may include a first coordinate value in a height direction corresponding to the first content when the first content is displayed on the screen, the second display position may include a second coordinate value in the height direction corresponding to the second content when the second content is displayed on the screen, and a difference value in the height direction between the first coordinate value and the second coordinate value is obtained and is used as the first height.
Specifically, if the first content and the second content are located in the same page and only one page of content is displayed on the screen, the manner of acquiring the first height may refer to the manner of acquiring the difference. In addition, when the display size of the content is different, the number of pages displayed on the screen is also different.
As another embodiment, the size of the display area occupied by each content when displayed on the screen may be determined, and the height interval between the first display position and the second display position may be determined according to the size of the occupied display area. Specifically, all content between the first display position and the second display position is determined; the height interval is determined according to the height of each of all contents.
Referring to the above description, each content corresponds to a row number, as an embodiment, the first display position may be an arrangement position of the first content in a page corresponding to the first content, that is, the row number, and similarly, the second display position may be an arrangement position of the second content in a page corresponding to the second content.
Specifically, the page corresponding to the first content is a first page, the row number of the first content in the first page is a first serial number, the page corresponding to the second content is a second page, and the row number of the second content in the second page is a second serial number, so that the first serial number is a first display position and the second serial number is a second display position.
As an implementation manner, whether the first page and the second page belong to the same page is determined, if the first page and the second page belong to the same page, the line sequence number between the first sequence number and the second sequence number is searched as an inter-interlacing sequence number, the content corresponding to the inter-interlacing sequence number is used as the inter-interlacing content, and then all the contents between the first display position and the second display position can be determined. The height of each content in the interval content is obtained, wherein the height may be a display height, that is, the height represents the height of a display area corresponding to the content when the content is displayed on the screen.
As an implementation manner, the determining the height interval according to the height of each of the all contents may be implemented by sequentially accumulating the heights of each of the all contents to obtain the height interval.
Assuming that the first content and the second content belong to the same page, the line number of the first content is 3, the line number of the second content is 6, the interlace number between the first content and the second content is 4 and 5, the interval content is the content corresponding to the line number 4 and the content corresponding to the line number 5, the height of the content corresponding to the line number 4 is g1, the height of the content corresponding to the line number 5 is g2, and the height interval is g1+ g 2.
As another implementation, if the first page and the second page do not belong to the same page, the height interval between the first display position and the second display position may be determined in a manner that a sequential relationship between the first page and the second page is determined, if the first page is earlier than the second page, a line number of an interval between a first line number of the first content and a last line number of the first page in the first page is obtained and recorded as a first interval interlace number, the content corresponding to the first interval line number is used as the first interval content, and the height of each content in the first interval content is accumulated to obtain the first interval height.
Similarly, the line number of the interval between the second line number of the second content and the first line number of the second page in the second page is obtained and marked as the second spacing line number, the content corresponding to the second spacing line number is used as the second spacing content, and the height of each content in the second spacing content is accumulated to obtain the second spacing height.
And then, acquiring a spacing page between the first page and the second page, and acquiring a height corresponding to the spacing page as the height of the spacing page, wherein the height corresponding to the page is the height of a display area occupied by the page when the page is displayed on a screen.
And obtaining the height interval between the first display position and the second display position according to the first interval height, the interval page height and the second interval height. In one embodiment, the first spacing height, the spacing page height and the second spacing height are accumulated, and the accumulated result is used as the height interval between the first display position and the second display position.
As another embodiment, a plurality of pages can be displayed on the screen, and the plurality of pages are arranged in sequence and displayed on the screen, for example, the plurality of pages include a first page, a second page, a third page, a fourth page, and a last page. And when a plurality of pages are displayed on the screen, each page corresponds to the position of the scroll bar, namely the height of each page corresponds to the length of the scroll bar. In some embodiments, the first page corresponds to the top area of the scroll bar, that is, the area of the scroll bar corresponding to the first page is at the top area of the scroll bar and the area of the scroll bar corresponding to the last page is at the bottom area of the scroll bar in all pages.
The content on the multiple pages also corresponds to a position of the scroll bar at each position of the scroll bar at which a slider on the scroll bar is positioned, the position corresponding to the content being displayed at the designated position on the screen. The position of the scroll bar corresponding to the content is named a scroll bar mark point, and the scroll bar mark point corresponding to the content may be determined according to the arrangement position on the page corresponding to the content.
The scroll bar mark point corresponding to the first content is marked as a first scroll bar mark point, the scroll bar mark point corresponding to the second content is marked as a second scroll bar mark point, and the position of the content with each row number on the scroll bar can be determined according to the scroll area of the first page corresponding to the scroll bar and the row sequence numbers of the plurality of contents in the page, that is, the scroll bar mark point of each content can be determined.
And determining the rolling distance between the first scroll bar mark point and the second scroll bar mark point according to the distance between the first scroll bar mark point and the second scroll bar mark point.
S605: and determining a second height corresponding to the first content.
The second height corresponding to the second content is a height of a display area occupied by the second content on the screen when the second content is displayed on the screen, and the specific obtaining manner may refer to the foregoing embodiment, which is not described herein again.
S606: determining the scroll distance from the first height and the second height.
As an embodiment, the sum of the first height and the second height may be taken as the scroll distance.
As another embodiment, a height corresponding to the second content may be further acquired as a third height, whether the third height meets a specified condition is determined, and if the third height meets the specified condition, the scroll distance is determined according to the first height, the second height, and the third height.
In some embodiments, determining whether the third height satisfies a specified condition may be by determining whether the third height is greater than a specified height value, determining that the third height satisfies the specified condition if greater than the specified height value, and determining that the third height does not satisfy the specified condition if less than or equal to the specified height value. If the third height is greater than the specified height, indicating that the height of the second content is relatively high, assuming that an area on the screen corresponding to the field of view of the user is marked as an initial area when the user processes the first content, in order to ensure that a display area of the second content on the screen is still located near the initial area when the user selects the second content, the scrolling distance may be adjusted according to the height of the second content under the condition that the height of the second content is relatively high.
Specifically, a fourth height may be determined based on the third height, the fourth height being smaller than the third height, and a sum of the first height, the second height, and the fourth height may be taken as the scroll distance. As an embodiment, the fourth height may be half the third height.
S607: and executing the scrolling operation on the screen according to the scrolling distance.
As an embodiment, a scrolling direction is determined according to the first display position and the second display position; and executing a scrolling operation on the screen according to the scrolling direction and the scrolling distance. Specifically, along the scroll direction, the slider of the control screen moves the scroll distance on the scroll bar.
As an embodiment, if the first content and the second content are simultaneously displayed in one page of the screen, the first display position is a display position of the first content on the screen, and the second display position is a display position of the second content on the screen, an embodiment of determining the scroll direction according to the first display position and the second display position may be that, if the first display position is located above the second display position, the scroll direction is determined to be scrolling upward; determining the scrolling direction as downward scrolling if the first display position is below the second display position. The first display position is located above the second display position, that is, the first content is closer to the top of the screen than the second content, and the first display position is located below the second display position, that is, the first content is closer to the bottom of the screen than the second content.
Note that the scroll direction refers to a moving direction of the content on the screen, for example, the scroll direction is upward, and means that the first content and the second content move toward the top near the screen. The scroll direction may be opposite to the direction of the slider sliding on the scrollbar, e.g., the content on the screen slides up and the slider slides down the scrollbar.
Therefore, when the user is currently processing the first content, the content on the screen may be slid upward when the next processed content, that is, the second content, is located below the first content, so that the display position of the second content is moved to the display position of the first content on the screen, so that the user may keep the field of view unchanged so that the processed contents are all located within the field of view of the user.
In addition, the screen is configured to display a plurality of pages, each of the pages includes a plurality of contents, and the determining of the scroll direction according to the first display position and the second display position may be implemented by determining whether the first content and the second content are located in the same page, and if the first content and the second content are located in the same page, determining that the scroll direction is upward scrolling if the first display position is located above the second display position, and determining that the scroll direction is downward scrolling if the first display position is located below the second display position.
If the first content and the second content are not located in the same page, determining a first page identifier of the page corresponding to the first content and a second page identifier of the page corresponding to the second content; and determining the scrolling direction according to the first page identifier and the second page identifier.
Wherein the identification of the page is used to mark the identity of the page in order to distinguish the page from other pages. As an implementation manner, when a plurality of pages are displayed on a screen, the pages are displayed from top to bottom according to the screen, specifically, the display arrangement rule of the plurality of pages on the screen may be referred to, and therefore, a sequence may be set according to the arrangement rule according to a top-to-bottom order of the screen, where the sequence includes a sequence number corresponding to an identifier of each page, and a smaller sequence number, i.e., a higher order number, indicates that the page that needs to correspond is displayed at a position closer to the top of the screen.
Therefore, an embodiment of determining the scrolling direction according to the first page identifier and the second page identifier may be that if the first page identifier is a page before the second page identifier, the scrolling direction is determined to be upward scrolling; and if the first page identifier is a page behind the second page identifier, determining that the scrolling direction is downward scrolling. Specifically, if the sequence number of the first page identifier is smaller or earlier than the sequence number of the second page identifier in the sequence, it is determined that the first page identifier is a page before the second page identifier, and if the sequence number of the first page identifier is larger or later than the sequence number of the second page identifier in the sequence, it is determined that the first page identifier is a page after the second page identifier.
For example, the identifiers of the multiple pages are page 1, page 2, page 3, and page 4, respectively, and the sequence is [ page 1, page 2, page 3, and page 4], then the first page identifier is page 1, and the second page identifier is page 2, and then it may be determined that the first page identifier is a page before the second page identifier.
In addition, when the second content is the head line or the tail line of the page, the content of the previous page or the next page may be loaded in advance, and specifically, it is determined whether the second display position is located at the head line or the tail line of the page corresponding to the second content; if the second content is positioned at the head line of the page, preloading the content of the page before the page corresponding to the second content; and if the second content is located in the tail line of the page, preloading the content of the page behind the page corresponding to the second content, specifically, please refer to the following embodiments.
As an embodiment, the scroll operation performed on the screen according to the scroll distance may be a scroll operation starting from the first display position. When the second content is far away from the first content, and the user needs to scroll the screen after operating the first content, the second content can be selected, the display position of the current second content is taken as the third display position, after the scroll distance is determined according to the above manner, after the scroll operation is expected according to the scroll distance, the expected display position of the second content is determined, the deviation between the expected display position and the third display position is determined, the scroll operation is performed on the screen according to the deviation, and the second content is moved, so that the display position of the second content is changed into the expected display position.
An embodiment of the present application provides a screen scrolling method, which is applied to an electronic device including a screen as an implementation manner, and specifically, as shown in fig. 7, the method includes: s701 to S706.
S701: and acquiring a first display position corresponding to the first content currently selected by the user.
S702: the number of times of the operation instruction continuously input by the user is acquired.
As an implementation, the operation instruction may be an instruction input by a user through an input device such as a keyboard, a mouse, or a touch screen. The operation instruction may be voice, or an instruction input through a keyboard, a mouse, or a touch screen.
As an embodiment, the operation instruction includes at least one of a first sub-instruction and a second sub-instruction, the first instruction is used to select a content before the first content as the second content, and the second instruction is used to select a content after the first content as the second content. The content before the first content may be the content before the line sequence corresponding to the first content in the first page corresponding to the first content, or the content in the page before the first page, and similarly, the content after the first content may be the content after the line sequence corresponding to the first content in the first page corresponding to the first content, or the content in the page after the first page.
In some embodiments, the manner of inputting the operation instruction may be inputting through a voice device, for example, the first sub-instruction may be inputting first voice information, and the second sub-instruction may be inputting second voice information, wherein the first voice information and the second voice information are different, for example, the first voice information may be "previous" voice, and the second voice information may be "next" voice.
In other embodiments, the manner of inputting the operation instruction may be inputting through an input device such as a keyboard, a mouse, or a touch screen, and specifically, may be inputting through a keyboard. Then, as one embodiment, the keyboard may be a designated key that the user operates the electronic device. In some embodiments, the designated key may be a key on a keyboard used with the electronic device, for example, the designated key includes an up direction key for inputting the first sub-instruction and a down direction key for inputting the second sub-instruction.
S703: and taking the Nth content before or after the first content as the second content according to the times of the operation instruction.
Wherein N is a natural number and is related to the number of times of the operation instruction.
Specifically, the nth content before the first content is selected as the second content, or the nth content after the first content is selected as the second content, and the value of N depends on a specific operation instruction and the number of times of the continuously input operation instruction.
The mode of counting the number of times of the operation instruction continuously input by the user may be to record the number of times of acquiring the operation instruction input by the user after acquiring the operation instruction, and determine whether a new operation instruction is received within a specified time length, where the specified time length may be a shorter time length, for example, 10 ms. And if a new operation instruction is received within the specified time length, updating the times, and continuously executing to determine whether the new operation instruction is received within the specified time length or not based on the time point of the operation instruction acquired this time until the new operation instruction is not received within the specified time length.
In one embodiment, the value of N is equal to the number of operation instructions. Specifically, the operation instruction is a first sub instruction, and the embodiment that the nth content before or after the first content is taken as the second content according to the number of times of the operation instruction may be that the nth content before the first content is taken as the second content, where N is equal to the number of times of the first sub instruction. The operation instruction is a second sub-instruction, and the embodiment that the nth content before or after the first content is taken as the second content according to the number of times of the operation instruction may be that the nth content after the first content is taken as the second content, where N is equal to the number of times of the second sub-instruction.
The number of times of the operation instruction continuously input by the user may be obtained by obtaining the number of times of the user continuously operating the specified key as the number of times of the operation instruction continuously input by the user.
Specifically, the above-described up direction key and down direction key are taken as examples. Counting the number of times of continuously pressing the upward direction key by the user as a first number of times, and taking the Nth content before the first content as the second content, wherein N is equal to the first number of times, for example, if the first number of times is 1, taking the 1 st content before the first content as the second content. And counting the number of times that the user continuously presses the downward direction key as a second number of times, and taking the Nth content after the first content as the second content, wherein N is equal to the second number of times.
As an embodiment, the user may alternately and continuously operate the up direction key and the down direction key, count a first number of times the user operates the up direction key and a second number of times the user operates the down direction key during a period of continuously operating the up direction key or the down direction key, determine whether the first number is greater than the second number, if so, obtain an absolute value of a difference between the first number and the second number as a first difference, and take an nth content before the first content as a second content, where N is equal to the first difference. And if the first time is less than the second time, acquiring an absolute value of a difference value between the first time and the second time as a second difference value, and taking the Nth content after the first content as a second content, wherein N is equal to the second difference value.
S704: and acquiring a second display position corresponding to the second content.
S705: the first display position and the second display position determine a scroll distance.
S706: and executing a scrolling operation on the screen according to the scrolling distance.
For example, in the embodiment of the present application, the user inputs the first sub-command by operating the up direction key of the keyboard, and inputs the second sub-command by operating the down direction key.
Taking the content shown in fig. 5 as an example, the first content currently selected by the user is the content corresponding to the identifier 3 in the drawing, the page corresponding to the first content is the second page, the row number of the first content in the second page is row 4, and when the user presses the up direction key once, the next content selected is the content corresponding to the identifier 2, that is, the second content, and the second content also corresponds to the second page, and the row number in the second page is row 3, and then the row number of the second content is smaller than the row number of the first content, it may be determined that the scrolling direction is downward scrolling, that is, the moving direction of the slider on the scroll bar is upward moving.
Assuming that the sliding distance is determined in such a manner that the height of the first content is acquired, since there is no spaced content between the first content and the second content, the spaced height, i.e., the first height, may be set to 0, and the height of the first content, i.e., the second height, is taken as the scroll distance, and the screen scroll operation is performed according to the second height. Specifically, the scroll operation may be implemented by moving the second content downward by the second height, as shown in fig. 8, and the content displayed on the screen after the second content is moved is as shown in fig. 8, and referring to fig. 5, L1 in fig. 5 and 8 is an auxiliary line for explaining a center line of the user's visual field range when the user operates the first content in fig. 5. It can be seen from a comparison between fig. 5 and fig. 8 that after the distance of the height of the first content has been scrolled, the second content is also located near the auxiliary line L1, i.e., the second content is located within the visual field of the user, so as to be easily viewed by the user. Therefore, when the user selects the second content through the keyboard, the screen automatically executes the scrolling operation, the second content is moved into the visual field range of the user, the situation that the user needs to manually operate a mouse and other devices to realize the scrolling of the screen is avoided, and the switching between the keyboard and the mouse can be reduced for the user.
In addition, as shown in fig. 8, although the second content is near this auxiliary line L1, in order to make the position of the second content on the screen more perfectly within the user's visual field, in the case where the height of the second content is high, i.e., greater than a specified height value, a height value of the second content, i.e., a third height, is acquired, and a fourth height is determined based on the third height, taking the sum of the first height, the second height, and the fourth height as the scroll distance. As an embodiment, the fourth height may be half the third height. Since the first height is zero, the sum of the second height and the fourth height may be taken as the scroll distance. That is, in addition to the scroll distance of fig. 8, the fourth height, that is, the downward moving distance of the second content is increased, and as shown in fig. 9, the auxiliary line L1 is located near the middle of the display area of the second content, and the display area of the second content in fig. 9 is located more perfectly within the visual field of the user than in fig. 8. In addition, as can be seen by comparing FIGS. 5, 8 and 9, the position of the slider on the scrollbar is also changing.
Then, after the second content is processed, the user can continue to operate the key to select the next content, and meanwhile, the electronic equipment determines whether the selected content belongs to the head line or the tail line of the page;
if the second content is positioned at the head line of the page, preloading the content of the page before the page corresponding to the second content; and if the second content is positioned at the tail line of the page, preloading the content of the page behind the page corresponding to the second content.
Then, when the keyboard is pressed again, if the newly selected content is located in the next or previous page, the content of the first line of the next or previous page is taken as the new second content. Of course, it is also possible to use the first content of the next page as the new second content if the new selected content is located in the next page, and use the last content of the previous page as the new second content if the new selected content is located in the previous page.
Referring to fig. 10, a block diagram of a screen scrolling device 1000 according to an embodiment of the present application is shown, where the device may include: a first acquisition unit 1001, a determination unit 1002, a second acquisition unit 1003, a second determination unit 1004, and a processing unit 1005.
A first obtaining unit 1001 is configured to obtain a first display position corresponding to a first content currently selected by a user.
A first determining unit 1002, configured to, when the user selects the next content, take the next content selected by the user as the second content.
A second obtaining unit 1003, configured to obtain a second display position corresponding to the second content.
A second determining unit 1004, configured to determine a scroll distance according to the first display position and the second display position.
A processing unit 1005, configured to perform a scroll operation on the screen according to the scroll distance.
It can be clearly understood by those skilled in the art that, for convenience and simplicity of description, the specific working processes of the above-described devices and modules may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
Referring to fig. 11, a block diagram of a screen scrolling device 1100 according to an embodiment of the present application is shown, where the device may include: a first acquisition unit 1110, a determination unit 1120, a second acquisition unit 1130, a second determination unit 1140 and a processing unit 1150.
The first obtaining unit 1110 is configured to obtain a first display position corresponding to a first content currently selected by a user.
A first determining unit 1120, configured to, when the user selects the next content, take the next content selected by the user as the second content.
Further, the first determining unit 1120 is further configured to obtain the number of times of the operation instruction continuously input by the user; and taking the Nth content before or after the first content as second content according to the times of the operation instructions, wherein N is a natural number and is related to the times of the operation instructions.
The operation instruction comprises at least one of a first sub-instruction and a second sub-instruction, the first instruction is used for selecting the content before the first content as the second content, and the second instruction is used for selecting the content after the first content as the second content.
Further, the first determining unit 1120 is further configured to use an nth content before the first content as the second content, where N is equal to the number of times of the first sub-instruction.
Further, the first determining unit 1120 is further configured to use an nth content after the first content as the second content, where N is equal to the number of times of the second sub-instruction.
Further, the first determining unit 1120 is further configured to obtain a number of times that the user continuously operates the specified key as a number of times that the user continuously inputs the operation instruction.
The operation instruction comprises at least one of a first sub-instruction and a second sub-instruction, the first instruction is used for selecting content before the first content as second content, the second instruction is used for selecting content after the first content as second content, the designation key comprises an upward direction key and a downward direction key, the upward direction key is used for inputting the first sub-instruction, and the downward direction key is used for inputting the second sub-instruction.
The second obtaining unit 1130 is configured to obtain a second display position corresponding to the second content.
A second determining unit 1140, configured to determine a scroll distance according to the first display position and the second display position.
A processing unit 1150, configured to perform a scrolling operation on the screen according to the scrolling distance.
Further, the processing unit 1150 is further configured to determine a scrolling direction according to the first display position and the second display position; and executing a scrolling operation on the screen according to the scrolling direction and the scrolling distance.
Further, the processing unit 1150 is further configured to determine that the scrolling direction is upward scrolling if the first display position is located above the second display position; determining the scrolling direction as downward scrolling if the first display position is below the second display position.
Further, processing unit 1150 is also configured to determine whether the first content and the second content are located within the same page; and if the first display position is located in the same page, determining that the scrolling direction is upward scrolling if the first display position is located above the second display position, and determining that the scrolling direction is downward scrolling if the first display position is located below the second display position.
Further, the processing unit 1150 is further configured to determine, if the pages are not located on the same page, a first page identifier of a page corresponding to the first content and a second page identifier of a page corresponding to the second content; and determining the scrolling direction according to the first page identifier and the second page identifier.
Further, the processing unit 1150 is further configured to determine that the scrolling direction is scrolling up if the first page identifier is a page before the second page identifier; and if the first page identifier is a page behind the second page identifier, determining that the scrolling direction is downward scrolling.
Further, the processing unit 1150 is further configured to determine whether the second display position is located at the head line or the tail line of the page corresponding to the second content; if the second content is positioned at the head line of the page, preloading the content of the page before the page corresponding to the second content; and if the second content is positioned at the tail line of the page, preloading the content of the page behind the page corresponding to the second content.
Further, the processing unit 1150 includes: a first height acquisition subunit 1151, a second height acquisition subunit 1152, and a distance acquisition subunit 1153.
The first height acquisition subunit 1151 is configured to determine a height interval between the first display position and the second display position as a first height.
Specifically, the first height obtaining subunit 1151 is further configured to determine all content between the first display position and the second display position; the height interval is determined according to the height of each of all the contents.
Specifically, the first height obtaining subunit 1151 is further configured to sequentially accumulate the height of each of all the contents to obtain the height interval. In one embodiment, the sum of the first height and the second height is used as the scroll distance.
The second height obtaining sub-unit 1152 is configured to determine a second height corresponding to the first content.
The distance obtaining subunit 1153 is configured to determine the scroll distance according to the first height and the second height.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses and modules may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In several embodiments provided in the present application, the coupling of the modules to each other may be electrical, mechanical or other forms of coupling.
In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
Referring to fig. 12, a block diagram of an electronic device according to an embodiment of the present disclosure is shown. The electronic device 100 may be a smart phone, a tablet computer, an electronic book, or other electronic devices capable of running an application. The electronic device 100 in the present application may include one or more of the following components: a processor 110, a memory 120, a screen 130, and one or more applications, wherein the one or more applications may be stored in the memory 120 and configured to be executed by the one or more processors 110, the one or more programs configured to perform the methods as described in the aforementioned method embodiments.
Processor 110 may include one or more processing cores. The processor 110 connects various parts within the overall electronic device 100 using various interfaces and lines, and performs various functions of the electronic device 100 and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 120 and calling data stored in the memory 120. Alternatively, the processor 110 may be implemented in hardware using at least one of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 110 may integrate one or a combination of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing display content; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 110, but may be implemented by a communication chip.
The Memory 120 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). The memory 120 may be used to store instructions, programs, code sets, or instruction sets. The memory 120 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing various method embodiments described below, and the like. The storage data area may also store data created by the terminal 100 in use, such as a phonebook, audio-video data, chat log data, and the like.
Referring to fig. 13, a block diagram of a computer-readable storage medium provided in an embodiment of the present application is shown. The computer-readable medium 1300 has stored therein program code that can be called by a processor to execute the method described in the above-described method embodiments.
The computer-readable storage medium 1300 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer-readable storage medium 1300 includes a non-volatile computer-readable storage medium. The computer readable storage medium 1300 has storage space for program code 1310 for performing any of the method steps of the method described above. The program code can be read from and written to one or more computer program products. The program code 1310 may be compressed, for example, in a suitable form.
In summary, according to the screen scrolling method, the device, the electronic device, and the computer readable medium provided by the application, when a user selects a first content, a first display position corresponding to the first content is obtained, then, when the user selects a next content, a second display position of the next content is determined, and a scrolling operation is performed on the screen according to the first display position and the second display position, so that the scrolling distance of the screen can refer to the positions of two contents selected by the user, rather than a fixed value.
The list data display mode realized by paging and waterfall flow is combined, the selected row in the table is always in the page sight range in the service processing process, service personnel only need to concentrate on the service, the tedious and mechanical mouse operation to roll the screen is reduced, the service processing efficiency is improved, and the user experience is improved. If the MVVM-like framework is used for operating data, a larger table or a plurality of tables are maintained; if the DOM is directly operated and new form data is added before and after the form, the service processing capacity of the page is more complex than that of the technical scheme.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not necessarily depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (20)

  1. A method of scrolling a screen, comprising:
    acquiring a first display position corresponding to first content currently selected by a user;
    when the user selects the next content, taking the next content selected by the user as the second content;
    acquiring a second display position corresponding to the second content;
    determining a scroll distance according to the first display position and the second display position;
    and executing a scrolling operation on the screen according to the scrolling distance.
  2. The method of claim 1, wherein the performing a scroll operation on the screen according to the scroll distance comprises:
    determining a scrolling direction according to the first display position and the second display position;
    and executing a scrolling operation on the screen according to the scrolling direction and the scrolling distance.
  3. The method of claim 2, wherein determining a scrolling direction based on the first display position and the second display position comprises:
    determining that the scrolling direction is scrolling up if the first display position is above the second display position;
    determining the scrolling direction as downward scrolling if the first display position is below the second display position.
  4. The method of claim 1, wherein determining a scroll distance based on the first display position and the second display position comprises:
    determining a height interval between the first display position and the second display position as a first height;
    determining a second height corresponding to the first content;
    determining the scroll distance from the first height and the second height.
  5. The method of claim 4, wherein determining the height separation between the first display position and the second display position comprises:
    determining all content between the first display position and the second display position;
    the height interval is determined according to the height of each of all contents.
  6. The method of claim 5, wherein determining the height interval according to the height of each of the total number of contents comprises:
    and accumulating the heights of all the contents in sequence to obtain the height interval.
  7. The method of any of claims 4-6, wherein said determining the scroll distance from the first height and the second height comprises:
    and taking the sum of the first height and the second height as the rolling distance.
  8. The method of claim 2, applied to an electronic device comprising the screen, the screen being used for displaying a plurality of pages, each page comprising a plurality of contents, the determining a scrolling direction according to the first display position and the second display position comprising:
    determining whether the first content and the second content are located within a same page;
    if the first display position is located above the second display position, determining that the scrolling direction is upward scrolling, and if the first display position is located below the second display position, determining that the scrolling direction is downward scrolling.
  9. The method of claim 8, further comprising:
    if the first page identifier and the second page identifier are not located in the same page, determining a first page identifier of the page corresponding to the first content and a second page identifier of the page corresponding to the second content;
    and determining the scrolling direction according to the first page identifier and the second page identifier.
  10. The method of claim 8, wherein determining the scrolling direction based on the first page identifier and the second page identifier comprises:
    if the first page identifier is a page before the second page identifier, determining that the scrolling direction is upward scrolling;
    and if the first page identifier is a page behind the second page identifier, determining that the scrolling direction is downward scrolling.
  11. The method of claim 8, further comprising:
    determining whether the second display position is located at the head line or the tail line of the page corresponding to the second content;
    if the second content is positioned at the head line of the page, preloading the content of the page before the page corresponding to the second content;
    and if the second content is positioned at the tail line of the page, preloading the content of the page behind the page corresponding to the second content.
  12. The method of any of claims 1-11, wherein determining the next content selected by the user comprises:
    acquiring the times of operating instructions continuously input by a user;
    and taking the Nth content before or after the first content as second content according to the times of the operation instructions, wherein N is a natural number and is related to the times of the operation instructions.
  13. The method of claim 12, wherein the operation instruction comprises at least one of a first sub-instruction and a second sub-instruction, wherein the first instruction is used to select a content before the first content as the second content, and wherein the second instruction is used to select a content after the first content as the second content.
  14. The method according to claim 13, wherein the operation instruction is a first sub-instruction, and the step of using an nth content before or after the first content as a second content according to the number of operation instructions comprises:
    and taking the Nth content before the first content as the second content, wherein N is equal to the number of times of the first sub-instruction.
  15. The method according to claim 13, wherein the operation instruction is a second sub-instruction, and the step of using an nth content before or after the first content as the second content according to the number of operation instructions comprises:
    and taking the Nth content after the first content as second content, wherein N is equal to the number of times of the second sub-instruction.
  16. The method according to claim 12, applied to an electronic device including the screen, wherein the operation instruction is input by a user operating a designated key of the electronic device, and wherein the obtaining of the number of times of the operation instruction continuously input by the user comprises:
    and acquiring the times of the user continuously operating the specified key as the times of the operation instruction continuously input by the user.
  17. The method according to claim 16, wherein the operation instruction includes at least one of a first sub instruction for selecting a content before the first content as the second content and a second sub instruction for selecting a content after the first content as the second content, and wherein the designation key includes an up direction key for inputting the first sub instruction and a down direction key for inputting the second sub instruction.
  18. A screen scrolling device, comprising:
    the first acquisition unit is used for acquiring a first display position corresponding to first content currently selected by a user;
    the first determining unit is used for taking the next content selected by the user as the second content when the user selects the next content;
    the second acquisition unit is used for acquiring a second display position corresponding to the second content;
    a second determination unit configured to determine a scroll distance according to the first display position and the second display position;
    and the processing unit is used for executing the scrolling operation on the screen according to the scrolling distance.
  19. An electronic device, comprising:
    one or more processors;
    a memory;
    a screen;
    one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more applications configured to perform the method of any of claims 1-17.
  20. A computer-readable medium having stored program code executable by a processor, the program code causing the processor to perform the method of any one of claims 1-17 when executed by the processor.
CN202080094693.9A 2020-03-30 2020-03-30 Screen scrolling method and device, electronic equipment and computer readable medium Pending CN115004142A (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/082156 WO2021195874A1 (en) 2020-03-30 2020-03-30 Screen scrolling method and apparatus, electronic device, and computer-readable medium

Publications (1)

Publication Number Publication Date
CN115004142A true CN115004142A (en) 2022-09-02

Family

ID=77927035

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202080094693.9A Pending CN115004142A (en) 2020-03-30 2020-03-30 Screen scrolling method and device, electronic equipment and computer readable medium

Country Status (2)

Country Link
CN (1) CN115004142A (en)
WO (1) WO2021195874A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113867591A (en) * 2021-10-09 2021-12-31 拉扎斯网络科技(上海)有限公司 Control method and device for displaying second floor page, storage medium and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103645855A (en) * 2013-11-29 2014-03-19 东莞宇龙通信科技有限公司 Touch reading method and device
JP2015184742A (en) * 2014-03-20 2015-10-22 富士ゼロックス株式会社 Information processor and information processing program
CN107783714A (en) * 2017-10-13 2018-03-09 北京金山安全软件有限公司 Page display method and device, electronic equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110286986A (en) * 2019-06-27 2019-09-27 新华网(北京)科技有限公司 Information processing method, device, electronic equipment and computer readable storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103645855A (en) * 2013-11-29 2014-03-19 东莞宇龙通信科技有限公司 Touch reading method and device
JP2015184742A (en) * 2014-03-20 2015-10-22 富士ゼロックス株式会社 Information processor and information processing program
CN107783714A (en) * 2017-10-13 2018-03-09 北京金山安全软件有限公司 Page display method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
WO2021195874A1 (en) 2021-10-07

Similar Documents

Publication Publication Date Title
US20240094872A1 (en) Navigating through documents in a document viewing application
KR101363560B1 (en) Mobile device and method for controlling the operation of the mobile device
EP3002664B1 (en) Text processing method and touchscreen device
US9304668B2 (en) Method and apparatus for customizing a display screen of a user interface
US9619133B2 (en) Method and system for displaying contents scrolling at high speed and scroll bar
EP2738654B1 (en) Touch screen operation method and terminal
CN104102441B (en) A kind of menu item execution method and device
US10114526B2 (en) Displaying an electronic document
US20140351758A1 (en) Object selecting device
US20110216095A1 (en) Methods, Devices, and Computer Program Products Providing Multi-Touch Drag and Drop Operations for Touch-Sensitive User Interfaces
US20120064946A1 (en) Resizable filmstrip view of images
CN108064368A (en) The control method and device of flexible display device
CN104850660A (en) Picture displaying method, picture displaying device and mobile terminal
CN107704157B (en) Multi-screen interface operation method and device and storage medium
US20140098053A1 (en) Electronic device, method for viewing desktop thereof, and computer-readable medium
CN113325985B (en) Desktop management method of terminal equipment and terminal equipment
CN109284034B (en) Method, system, storage medium and mobile phone for previewing terminal wallpaper
CN106598405A (en) Terminal device and method for dynamically adjusting control position by terminal device
CN105122244A (en) A multi-panel view interface for a browser operating on a computing device
KR100795590B1 (en) Method of navigating, electronic device, user interface and computer program product
EP4180927A1 (en) Information display method, electronic device and storage medium
CN115004142A (en) Screen scrolling method and device, electronic equipment and computer readable medium
CN106775295B (en) A kind of display methods and mobile terminal based on curve screens
CN112099706A (en) Page display method and device, electronic equipment and computer readable storage medium
CN103150118A (en) Method, device and mobile terminal for selecting contents based on multi-point touch technology

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination