[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN110413176B - Page turning interaction method, device and equipment and computer readable storage medium - Google Patents

Page turning interaction method, device and equipment and computer readable storage medium Download PDF

Info

Publication number
CN110413176B
CN110413176B CN201910689661.2A CN201910689661A CN110413176B CN 110413176 B CN110413176 B CN 110413176B CN 201910689661 A CN201910689661 A CN 201910689661A CN 110413176 B CN110413176 B CN 110413176B
Authority
CN
China
Prior art keywords
turning
page
preset
preset page
rotation limiting
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.)
Active
Application number
CN201910689661.2A
Other languages
Chinese (zh)
Other versions
CN110413176A (en
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.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network 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 Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN201910689661.2A priority Critical patent/CN110413176B/en
Publication of CN110413176A publication Critical patent/CN110413176A/en
Application granted granted Critical
Publication of CN110413176B publication Critical patent/CN110413176B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0483Interaction with page-structured environments, e.g. book metaphor
    • 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/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The disclosure provides a page turning interaction method, a page turning interaction device, page turning interaction equipment and a computer readable storage medium, wherein a graphical user interface comprises a preset page; the method comprises the following steps: responding to a preset touch operation acting on a preset page, and determining a rotation limiting position of the preset page according to the position of a touch point of the preset touch operation; responding to a turning instruction which is acted on a preset page and comprises direction information, and determining the initial turning position and the turning direction of the preset page according to the turning instruction; and controlling the preset page to turn according to the initial turning position, the turning direction and the rotation limiting position. According to the scheme provided by the disclosure, the user operates in the user interface, so that the user can freely turn over the preset page. And the user can set the turnover limiting position by himself, so that the turnover effect can be enriched.

Description

Page turning interaction method, device and equipment and computer readable storage medium
Technical Field
The present disclosure relates to interface interaction technologies, and in particular, to an interaction method, an interaction device, an interaction apparatus, and a computer-readable storage medium for page flipping.
Background
At present, paper turning exists in many application scenarios, for example, when a user reads a book in a mobile terminal, the user may touch a screen to turn pages of the book, and for example, in a game screen, the user may operate a book prop to trigger turning.
In the prior art, developers are required to preset the page turning effect, and when a user operates an electronic device to trigger the turning action of a book, the preset turning effect can be presented.
However, the scheme in the prior art can cause the problem of single page turning mode, so that a rich interactive interface cannot be presented to a user.
Disclosure of Invention
The disclosure provides a page turning interaction method, a page turning interaction device, page turning interaction equipment and a computer readable storage medium, which are used for solving the problem that a page turning mode is single due to a scheme in the prior art.
The first aspect of the present disclosure is to provide an interactive method for page turning, where a graphical user interface includes a preset page;
the method comprises the following steps:
responding to a preset touch operation acting on the preset page, and determining a rotation limiting position of the preset page according to the position of a touch point of the preset touch operation;
responding to a turning instruction which acts on a preset page and comprises direction information, and determining an initial turning position and a turning direction of the preset page according to the turning instruction;
and controlling the preset page to turn according to the starting turning position, the turning direction and the rotation limiting position.
Another aspect of the present disclosure is to provide a page turning interaction apparatus applied to a mobile terminal capable of presenting a graphical user interface, the apparatus including:
the first response module is used for responding to a preset touch operation acting on the preset page and determining the rotation limiting position of the preset page according to the position of the touch point of the preset touch operation;
the second response module is used for responding to a turning instruction which acts on a preset page and comprises direction information, and determining the starting turning position and the turning direction of the preset page according to the turning instruction;
and the turning module is used for controlling the preset page to turn according to the starting turning position, the turning direction and the rotation limiting position.
Yet another aspect of the present disclosure is to provide a page turning interaction device, including:
a memory;
a processor; and
a computer program;
wherein the computer program is stored in the memory and configured to be executed by the processor to implement the page turning interaction method as described in the first aspect above.
Yet another aspect of the present disclosure is to provide a computer-readable storage medium having stored thereon a computer program, which is executed by a processor to implement the page turning interaction method as described in the first aspect above.
The page turning interaction method, the page turning interaction device, the page turning interaction equipment and the computer readable storage medium have the technical effects that:
the disclosure provides a page turning interaction method, a page turning interaction device, page turning interaction equipment and a computer readable storage medium, wherein a graphical user interface comprises a preset page; the method comprises the following steps: responding to a preset touch operation acting on a preset page, and determining a rotation limiting position of the preset page according to the position of a touch point of the preset touch operation; responding to a turning instruction which is acted on a preset page and comprises direction information, and determining the initial turning position and the turning direction of the preset page according to the turning instruction; and controlling the preset page to turn according to the initial turning position, the turning direction and the rotation limiting position. According to the scheme provided by the disclosure, the user operates in the user interface, so that the user can freely turn over the preset page. And the user can set the turnover limiting position by himself, so that the turnover effect can be enriched.
Drawings
FIG. 1 is a first interface diagram illustrating an exemplary embodiment of the present invention;
FIG. 2 is a flowchart illustrating an interactive method of page flipping according to an exemplary embodiment of the invention;
FIG. 2A is a second interface schematic shown in accordance with an exemplary embodiment of the present invention;
FIG. 3 is a flowchart illustrating an interactive method of page flipping according to another exemplary embodiment of the invention;
FIG. 3A is a third interface diagram shown in accordance with an exemplary embodiment of the present invention;
FIG. 3B is a fourth interface diagram according to an exemplary embodiment of the present invention;
FIG. 3C is a fourth interface diagram illustrating an exemplary embodiment of the present invention;
FIG. 4 is a block diagram illustrating an interactive apparatus for page turning according to an exemplary embodiment of the present invention;
FIG. 5 is a block diagram illustrating an interactive apparatus for page turning according to another exemplary embodiment of the present invention;
fig. 6 is a block diagram illustrating an interactive device for page turning according to an exemplary embodiment of the present invention.
Detailed Description
When a user uses an electronic device, the user often encounters an application scenario that requires turning a page in a user interface. Such as reading an electronic book or a game item displayed in a game interface. The page turning modes in the prior art are all preset, and a user operating the electronic equipment can trigger the page to turn according to the preset mode, so that the problem of single turning effect is caused.
Fig. 1 is a first interface diagram according to an exemplary embodiment of the present invention.
As shown in FIG. 1, embodiments of the present invention may be utilized in a graphical user interface. The preset page 11 is included in the graphical user interface, and may be, for example, a letter, a book, or the like.
FIG. 2 is a flowchart illustrating an interactive method of page flipping according to an exemplary embodiment of the invention;
as shown in fig. 2, the page turning interaction method provided by this embodiment includes:
step 201, in response to a preset touch operation acting on a preset page, determining a rotation limiting position of the preset page according to a touch point position of the preset touch operation.
The method provided by the embodiment can be executed by an electronic device with computing capability, and the electronic device has a graphical display interface, and the first interface shown in fig. 1 can be displayed in the graphical display interface. The electronic device may be, for example, a smartphone, a computer, an electronic paper book, or the like.
If the preset page is an electronic book, the user can operate the electronic device to open the reading software, so that the electronic device displays a graphical user interface comprising the preset page. If the preset page is a letter or the like in the game item, the user can operate the electronic device to open the game software, so that the electronic device displays a graphical user interface comprising the game item.
Specifically, the user can perform a preset touch operation on the preset page, so as to set a rotation limiting position of the preset page. The rotation-restricted position refers to a position at which the preset page cannot be rotated, such as a position at which an actual sheet is stapled by a drawing pin, and the position at which the sheet is stapled cannot be reversed.
Further, the preset touch operation may be a heavy press, a long press, or a click operation. For example, the user may directly press or long-press a position in the preset page, thereby setting the position as the rotation-restricting position; for another example, the user may select a function of setting the rotation-restriction position and click a position in a preset page, thereby setting the position as the rotation-restriction position.
In an embodiment, if the solution provided in this example is applied to a PC, after the user selects the function of setting the rotation limiting position, the electronic device may further change the pattern of the mouse in the user interface, for example, change the pattern into a thumb pin shape, and the user may move the thumb pin shaped mouse according to the requirement, and after moving to the required position, may click the mouse to set the rotation limiting position. The function of limiting the rotation position can be released after the user clicks the mouse, and the pattern of the mouse can be recovered.
In one embodiment, after the user selects the function of setting the rotation-position restriction, a movable icon, such as a "cross-shaped icon", a "pin-shaped icon", or the like, may be displayed in the user interface. The user can click the icon through a mouse or a touch mode, long-press the icon to drag the icon to a required position, and then release the mouse or fingers to realize the setting of the rotation limiting position.
The electronic equipment can record the rotation limiting position set by the user, so that when the user turns the preset page, the preset page can be rendered according to the rotation limiting position to show the turning effect required by the user.
Optionally, if the preset page includes multiple pages, for example, a book, the page corresponding to the rotation-limiting position may also be set, for example, the rotation-limiting position is only used for limiting pages 2 to 10.
Step 202, responding to a turning instruction including direction information acting on the preset page, and determining a starting turning position and a turning direction of the preset page according to the turning instruction.
When the user turns the preset page, the user can operate in the user interface, and sends a turning instruction acting on the preset page to the electronic equipment, wherein the turning instruction comprises direction information, and then a page turning process is triggered. For example, the user can slide any position of the preset page to trigger the turning operation.
Specifically, when a user turns a solid book, the user slides the pages with fingers to turn the book. Therefore, when the user operates on the electronic equipment, the user can slide on the preset page, and the page is turned. The electronic device may turn the preset page in response to the operation of the user.
Further, if the electronic device is provided with a touch screen, the user can directly slide on the touch screen at a position corresponding to the preset page by using a finger to send a turning instruction; if the electronic device does not have a touch screen and has external input devices such as a mouse, the user can press the mouse to drag the electronic device at the position of the preset page, and then the electronic device sends a turning instruction.
The user may operate the user terminal to turn a preset page, such as turning a page, turning a corner, and the like. For example, in a game application scenario, if there is a prop to be operated under a piece of paper, the user may drag a corner of the piece of paper, and turn it over.
In practical application, if a user wants to turn over a preset page, the user may operate the preset page, and therefore, a control area may be set on the preset page, for example, a range that is a certain distance away from an edge of the preset page is set as the control area.
When the user turns the preset page, the control area can be operated, the electronic device can respond to the turning instruction to determine the turning direction, and then the picture is rendered according to the turning direction, so that the page turning effect is presented.
Specifically, the user may want to turn the preset page in which direction, and may perform the sliding operation in which direction. Therefore, in order to meet the operation habit of the user, the turning direction of the preset page can be determined according to the direction information in the turning instruction. For example, the direction of the sliding in the flipping instruction may be directly used as the flipping direction of the preset page.
Furthermore, the initial turning position of the preset page can be determined according to the turning instruction, and when turning is performed, the initial turning position is turned first, and the initial turning position can be a position point or a position area. For example, if the operation position corresponding to the flipping instruction of the user is the lower right corner area of the preset page, the lower right corner of the preset page is the initial flipping position. For another example, if the operation position corresponding to the flipping instruction of the user is the middle of the right side of the preset page, the right side of the preset page is the initial flipping position.
Therefore, based on the method provided by the embodiment, the turning direction and the starting turning position of the preset page can be determined according to the operation of the user, so that the electronic device can turn the preset page according to the information.
And step 203, controlling the preset page to turn according to the initial turning position, the turning direction and the rotation limiting position.
During practical application, after the electronic equipment determines the initial turning position and the turning direction, the electronic equipment can control the preset page turning by combining the limiting turning position, can specifically render the preset page, enables the turning effect of the preset page to be presented in the user interface, can specifically enable the preset page to be turned over according to the turning direction from the initial turning position, and stops continuing turning when encountering the limiting turning position in the turning process.
Specifically, after the rendering position reaches the rotation limiting position, the rendering can be stopped, so that the preset page does not generate the turning visual effect at the position where the rotation limiting position is arranged, and the turning effect which is consistent with the preset setting of the user is achieved.
Fig. 2A is a second interface schematic diagram according to an exemplary embodiment of the invention.
As shown in fig. 2A, after the user sets the rotation limiting position, the user may operate the first interface shown in fig. 1, so that the page is turned over, and the turning effect is as shown in fig. 2A. When the page is turned and the turning position reaches the position where the rotation limiting position is located, the page stops turning.
The method provided by the embodiment is used for turning the preset page in the user interface according to the turning instruction, and is executed by a device provided with the method provided by the embodiment, and the device is generally implemented in a hardware and/or software manner.
The present disclosure provides an interactive method for page turning, wherein a graphical user interface comprises a preset page; the method comprises the following steps: responding to a preset touch operation acting on a preset page, and determining a rotation limiting position of the preset page according to the position of a touch point of the preset touch operation; responding to a turning instruction which is acted on a preset page and comprises direction information, and determining the initial turning position and the turning direction of the preset page according to the turning instruction; and controlling the preset page to turn according to the initial turning position, the turning direction and the rotation limiting position. According to the scheme provided by the disclosure, the user operates in the user interface, so that the user can freely turn over the preset page. And the user can set the turnover limiting position by himself, so that the turnover effect can be enriched.
Fig. 3 is a flowchart illustrating an interactive method of page turning according to another exemplary embodiment of the present invention.
As shown in fig. 3, the page flipping interaction method provided by this embodiment includes:
step 301, in response to a preset touch operation acting on a preset page, determining a rotation limiting position of the preset page according to a touch point position of the preset touch operation.
The implementation principle and effect of step 301 and step 101 are similar, and are not described again.
At step 302, the pushpin assembly is positioned at the restricted rotation position.
After receiving the preset touch operation, the electronic device can respond to the operation to determine the rotation limiting position, and can also set a drawing pin component at the rotation limiting position. In one embodiment, the method can be operated by a developer, so that the electronic device responds to the preset touch operation, and a drawing pin component is added in a preset page, and the drawing pin component can be loaded when the preset page provided with the drawing pin component is loaded into the electronic device.
In another embodiment, the method may also be operated by the user, so that the electronic device responds to the preset touch operation, thereby adding the pushpin component in the preset page. For example, a client may be provided in the electronic device, and a user may operate in the client to add a thumbtack component to a book, thereby fixing the book.
The preset page can be displayed in the electronic equipment, a user can operate the electronic equipment, select the pushpin component, select a position in the preset page, and then send a preset touch operation to the electronic equipment, so that the electronic equipment can add the pushpin component to the position.
The pushpin component can be a component obtained in advance through coding or other methods, and when the pushpin component needs to be added, the pushpin component can be called directly without repeated coding. For example, when a user interface is designed, a position where a page is fixed and cannot be turned over needs to be set frequently, and a developer needs to write codes repeatedly for different user interfaces or when the position changes. The drawing pin assembly is arranged, so that the drawing pin assembly can be repeatedly utilized, a developer does not need to write codes for many times, and the repeated coding times of the developer can be reduced.
Specifically, when predetermineeing the page upset, if the upset position coincides with this drawing pin subassembly position, then stops the upset, and then can realize predetermineeing the effect of page upset through the restriction of drawing pin subassembly to this effect is unanimous with the user setting, can realize multiple page upset effect according to the user's demand.
Step 303, determining the number of preset pages according to the touch pressure of the preset touch operation.
Further, in the user interaction interface, the preset page may include a multi-layer page, for example, an effect of overlapping n pages, where each page has certain information. At this time, the number of the preset pages may also be determined according to the touch pressure of the preset touch operation. For example, if the pressing force at the position a is F1, the number of pages is determined to be 3; the degree of pressing at the position B is F2, and the number of pages is determined to be 5. Thereby realizing different overturning effects of different pages.
It can be understood that, in other embodiments, the number of the preset pages may also be determined according to the touch duration of the preset touch operation. For example, if the touch duration at the position a is T1, determining that the page number is 3; the touch duration at the position B is T2, and the number of pages is determined to be 5. Thereby realizing different overturning effects of different pages.
In practice, the pin assembly may be positioned in a limited rotational position in combination with the determined number such that the pin assembly is applied to penetrate a corresponding number of pages.
And 304, receiving an adding instruction comprising the area information, adding a transparent mask in the preset page according to the adding instruction, and determining a control area of the preset page according to the transparent mask.
Further, the method provided by this embodiment may further include a step of setting a control area. In actual application, a user can operate the electronic device and send an adding instruction to the electronic device, wherein the adding instruction comprises area information. For example, a screen of an electronic device may be touched with a finger to define an area, and a transparent mask may be added to the area.
The region provided with the transparent mask may be used as the control region. The preset page can be displayed in the electronic equipment, a user can operate the electronic equipment, select to add the transparent mask, determine the area information in the preset page, and further send an adding instruction to the electronic equipment, so that the electronic equipment can add the transparent mask to the area.
Fig. 3A is a third interface diagram according to an exemplary embodiment of the present invention.
The user may operate the electronic device so that there is also provided in the graphical user interface at least one tack assembly 12 and a control area 13 (the area dotted to the edge of the page). The pin assembly 12 may be used to hold the preset page 11 so that it does not flip over when the pin assembly 12 is in place. The pushpin assembly 12 may not be directly displayed, but may be displayed in the interface in the form of a pushpin. The control area 13 may be an area operated by a user, and the user may operate in the control area to turn the preset page.
Step 305, responding to the setting operation acting on the preset page, and determining a turning parameter corresponding to the preset page.
Further, in the method provided by this embodiment, a flipping parameter of a preset page is also preset. For example, the turning radius when the page is turned is preset, and information such as the turning speed of the page may also be included. Therefore, when the preset page is controlled to turn, the page can be rendered according to the preset turning parameters, and the turning effect is achieved.
In the method provided by this embodiment, the order of adding the pushpin component, setting the flipping parameter, and adding the transparent mask in the preset page may be adjusted, and corresponding steps may be executed according to the operation order of the user.
Step 306, responding to a turning instruction triggered by the sliding touch operation acting on the preset page, and determining an initial turning position according to an initial click position of an initial sliding position of the sliding touch operation; the slide direction of the slide-touch operation is determined as the flip direction.
The method provided by the embodiment can be applied to the user interface shown in fig. 1 or fig. 3A. When the user turns over the preset page, the user can operate the preset page, so that the electronic equipment is triggered to turn over the preset page, and particularly, the region where the transparent mask is located can be operated. The transparent mask may be in an invisible form.
Specifically, if the electronic device detects that the user performs a sliding touch operation on the transparent mask, it may be considered that the user triggers a page turning operation. At this time, the electronic device may determine the initial flipping position and the flipping direction of the preset page in response to the user operation.
The electronic device can be subjected to sliding operation by fingers on a touch screen of the electronic device, and a turning instruction is sent to the electronic device.
Further, when the user turns the actual paper page, the user may operate in a certain direction as required, for example, if the user wishes to turn the page to the left, the user may lift the page and move his hand to the left, and if the user wishes to turn the paper page from the lower right corner to the upper left corner, the user may lift the position of the paper page near the lower corner.
In order to ensure that the presentation effect of the preset page is more consistent with the actual paper page in the user interaction process, the initial turning position and the turning direction can be determined according to the operation of the user, so that the generated visual turning effect is more consistent with the operation of the user when the preset page is rendered based on the two pieces of information.
In practical application, the initial turning position can be determined according to the initial sliding position of the sliding touch operation. It is possible to consider the starting position of the user at the time of operation, and even if the user wishes to turn over first, the starting turning position can be determined from this position. For example, a page edge position close to the start sliding position may be determined in the preset page and used as the start flipping position.
For example, if the position operated by the user is a certain position of the lower right part of the preset page, the lower right corner position of the page can be used as the initial turning position. For another example, if the position operated by the user is the middle position of one side of the preset page, the one side can be used as the initial turning position.
Specifically, the sliding direction of the sliding touch operation may be directly determined as the flipping direction. Therefore, the turning direction of the preset page is in accordance with the actual operation direction of the user.
And 307, controlling the preset page to turn according to the initial turning position, the turning direction, the turning parameters and the rotation limiting position.
Specifically, a preset page can be rendered to generate a visual effect of turning from an initial turning position according to a turning direction.
After the initial turning position and the turning direction are determined, the preset page can be rendered according to the information, and then the preset page can be turned from the initial turning position to the turning direction.
Specifically, since the starting flipping position and the flipping direction are determined according to the operation position and the operation direction of the user, the rendered flipping effect conforms to the operation of the user.
Further, the turning radius may be determined according to the turning parameter, and specifically, the turning radius included in the preset turning parameter may be obtained.
Furthermore, when the preset page is rendered, the initial turning position can be rendered first, so that the turning effect is generated at the position, and then the rendering is continued along the turning direction, so that the preset page generates the visual effect turning towards the direction. Meanwhile, when rendering, the preset page generates a visual effect of turning by taking the turning radius as the radius.
The preset page in the user interface is not really turned, but the picture is rendered to generate a turning visual effect. Therefore, the rendering can be started from the starting flip position, so that the curled visual effect is generated. And gradually rendering the part of the preset page in the turning direction to generate a curled visual effect, wherein the specific rendering speed is related to the preset turning speed. Wherein the rendering can be started from the start flip position, so that a curled visual effect is generated. And gradually rendering the part of the preset page in the turning direction to generate a curled visual effect.
In practical application, the specific picture rendering method may adopt a method in the prior art.
And in the rendering process, when the position of the rendered preset page is coincident with the position of the limiting terminal, stopping continuously rendering the preset page with the turning effect.
When the preset page is rendered, the rendering can be started from the initial turning position of the preset page, and the rendering is performed gradually towards the turning direction.
Specifically, in the rendering process, if the rendering position in the preset page coincides with the determined rotation limiting position, the rendering of the turning effect on the preset page may be stopped. Since the rotation-restricting position is provided with the pushpin assembly, the preset page can be fixed, and therefore, when the rendering position reaches this position, the preset page cannot continue to rotate.
Further, in order to enable the preset page to generate the effect of stopping turning, when the rendering position of the preset page coincides with the rotation limiting position, rendering of the turning effect of the preset page may be stopped.
Optionally, although the preset page cannot be further turned due to the pushpin assembly, the preset page is not rendered with a turning effect. However, other effects may be rendered on the preset page, for example, the position where the paper is turned up may be shaken, and a visual effect of floating with the wind may be generated.
Specifically, when the preset page is controlled to be turned to the rotation limiting position, the method provided by this embodiment may further include:
step 308, determine whether the flipping command satisfies a predetermined condition.
If so, go to step 309, otherwise go to step 310.
The preset condition may be, for example, a duration of the flipping instruction, and if the duration is short, for example, the time for the user to slide the touch screen is very short, the preset condition may be considered to be not satisfied. The preset condition may also be a sliding distance on the touch screen, and if the sliding distance is shorter than a threshold, the preset condition may be considered to be not satisfied.
Specifically, when the user releases the flipping instruction, whether the flipping instruction meets a preset condition or not can be judged, and the flipping instruction is generated by the continuous operation of the user, so that the complete flipping instruction can be determined only when the user releases the instruction.
And 309, determining a turning shaft according to the rotation limiting position, and controlling the preset page to continuously turn along the turning shaft.
After the user releases the turning instruction, the electronic device can control the preset page to continue turning along the turning shaft if the turning instruction is determined to meet the preset condition.
In practical application, a user operates the electronic device to turn over the preset page, and the turning instruction is released, so that the page is stopped from being continuously turned over. For example, the user may lift a finger sliding on the touch screen, thereby releasing the flip command.
After the electronic equipment detects that the user releases the overturning instruction, whether the overturning instruction meets the preset condition or not can be judged, if yes, a overturning shaft can be determined, the preset page can be continuously overturned based on the overturning shaft, and an overturning effect larger than the amplitude generated by user operation is generated.
Specifically, because the staple assembly can fix the preset page, the turning amplitude of the preset page is closely related to the position of the rotation limiting position. Based on this, the method provided by this embodiment can determine the turning shaft according to the rotation-limiting position, and specifically can determine the turning shaft according to the position of the drawing pin adding assembly. For example, the electronic device may obtain position information of the added pushpin assembly in a preset page, and determine the flip axis based on the obtained position.
Further, if the number of the rotation limiting positions is 1, the turning shaft is determined according to the direction of the connecting line of the position of the drawing pin assembly and the end position of the turning instruction.
In practical application, if only one rotation limiting position is provided, for example, only one drawing pin assembly for fixing a preset page is added, the turning shaft can be determined according to the connecting line direction between the position of the rotation limiting position and the end position of the turning instruction.
In this case, a position where the flip command is released may be acquired as an end position of the flip command, for example, a position where the user lifts a finger on the touch screen. It is possible to determine a direction of a connection line of the restricting rotational position and the end position of the flipping command, and to take a direction perpendicular to this connection direction as the direction of the flipping axis. Specifically, it may be considered that the tumble shaft passes through the rotation limit position, or the tumble shaft may pass through the end position of the tumble command, or the tumble shaft may pass through the intermediate position between the rotation limit position and the tumble command release position. Therefore, the overturning shaft can be determined according to the two elements of the passing position and the passing direction.
For example, if a rotation-limiting position is set in the middle of the preset page, the finally determined direction of the flipping axis is perpendicular to the direction of the connection line between the end position of the flipping command and the rotation-limiting position, and if the preset page continues to be flipped based on the axis, the actual operation of the user can be met.
This embodiment enables the preset page to be continuously turned from the end position of the turning instruction toward the rotation-restricted position after the user operates the electronic device to release the turning of the preset page.
If the number of rotational positions is limited to 2, two pushpin assemblies are added. The page is constrained by the two pushpin assemblies during flipping, and the direction of the link that limits the rotational position can be determined and used as the direction of the flip axis. Specifically, it may be considered that the turning shaft passes through the rotation limiting position, or the turning shaft may pass through the end position of the turning instruction, or the turning shaft may pass through the middle position between the rotation limiting position and the end position of the turning instruction. Therefore, the overturning shaft can be determined according to the two elements of the passing position and the passing direction.
When predetermineeing the page and continuing to overturn with the trip shaft, can accord with two restriction turned position and to the limiting displacement who predetermines page upset effect, and then the visual effect that obtains of rendering based on this trip shaft more accords with the effect that the actual paper overturns when being fixed.
If the number of restricted rotational positions is greater than or equal to 3, then two target restricted rotational positions can be determined therein and the flip axis determined in the manner when the pushpin assembly is two. Specifically, two rotation-restricting positions closest to the end position of the flip instruction may be set as the target rotation-restricting positions.
When the user operates the electronic device to turn over a preset page, the user starts the operation on the side of the page desired to be turned over and performs the operation of sliding or dragging, and therefore, it can be considered that the rotation-restricting position closer to this operation position restricts the turning over of the page. Therefore, the two rotation-restricting positions closest to the position of the instruction to stop the turning can be set as the target rotation-restricting positions, and the turning shaft can be determined based on the two rotation-restricting positions.
Controlling the preset page to continue to turn over along the turning axis may specifically include:
and rendering the preset page according to the turning shaft to generate a visual effect of turning by taking the turning shaft as the axis, and stopping rendering the turning effect of the preset page when the rendered position of the preset page is coincident with the rotation limiting position.
In the method provided by this embodiment, after the electronic device receives the instruction to stop flipping that is continuous with the instruction to flip, rendering may be continued on the basis of the current rendering screen, so as to generate a flipping effect of a larger extent.
The preset page can be rendered continuously according to the determined turning axis, so that the visual effect of turning by taking the turning axis as the axis is generated.
Specifically, a part of the preset page is rendered according to the turning instruction of the user so that the preset page generates a turning effect, for example, the page is turned from the right side to the left side according to the turning instruction of the user, and the preset page is only provided with a rotation limiting position at the upper left corner. Then, the electronic device can enable the preset page to continue to turn to the position of the upper left corner according to the turning releasing instruction, so that a turning effect with a larger range is presented.
Furthermore, because the limiting rotation position for fixing the preset page is arranged, the limiting rotation position has a limiting effect on the turning effect of the preset page, and therefore when the rotation position of the preset page and the limiting rotation position coincide, namely the turning position of the preset page touches the limiting rotation position, the rendering of the turning effect of the preset page is stopped, and the visual effect that the limiting rotation position prevents the page from turning can be presented.
Fig. 3B is a third interface diagram according to an exemplary embodiment of the invention.
Fig. 3C is a fourth interface diagram according to an exemplary embodiment of the invention.
The preset page is rendered through a flipping instruction of the user, and the picture effect as shown in fig. 3B can be obtained. After the user releases the flipping command, the electronic device may continue to render the preset page, and further render a larger flipping effect of the page according to the set rotation-limiting position, as shown in fig. 3C. Wherein the circle position represents a position where a rotation-restricting position is provided. The dashed line in the figure is the defined flip axis.
And step 310, restoring the initial state of the preset page.
If the user releases the turning instruction, the electronic equipment judges that the turning instruction does not meet the preset condition, and the preset page can be rendered to restore the initial state. For example, the turned-up portion of the rendered preset page gradually falls down and returns to the state shown in fig. 1.
Fig. 4 is a block diagram illustrating an interactive apparatus for page turning according to an exemplary embodiment of the present invention.
As shown in fig. 4, the page turning interaction device provided in this embodiment is applied to a mobile terminal capable of presenting a graphical user interface, where the graphical user interface includes a preset page; the device comprises:
a first response module 41, configured to respond to a preset touch operation applied to the preset page, and determine a rotation limiting position of the preset page according to a touch point position of the preset touch operation;
a second response module 42, configured to respond to a flipping instruction including direction information and acting on a preset page, and determine an initial flipping position and a flipping direction of the preset page according to the flipping instruction;
and the turning module 43 is configured to control the preset page to turn according to the initial turning position, the turning direction, and the rotation limiting position.
The page turning interaction device provided by the embodiment is applied to a mobile terminal capable of presenting a graphical user interface, wherein the graphical user interface comprises a preset page; the device comprises: the first response module is used for responding to a preset touch operation acting on a preset page and determining a rotation limiting position of the preset page according to the position of a touch point of the preset touch operation; the second response module is used for responding to a turning instruction which acts on the preset page and comprises direction information, and determining the initial turning position and the turning direction of the preset page according to the turning instruction; and the turning module is used for controlling the preset page to turn according to the initial turning position, the turning direction and the limited rotating position. According to the device provided by the embodiment, the user operates in the user interface, so that the user can freely turn over the preset page. And the user can set the turnover limiting position by himself, so that the turnover effect can be enriched.
The specific principle and implementation of the page turning interaction device provided in this embodiment are similar to those of the embodiment shown in fig. 2, and are not described here again.
Fig. 5 is a block diagram illustrating an interactive apparatus for page turning according to another exemplary embodiment of the present invention.
As shown in fig. 5, on the basis of the foregoing embodiment, in the page turning interaction apparatus provided in this embodiment, optionally, the first response module 41 is further configured to:
and determining the number of the preset pages according to the touch pressure of the preset touch operation.
The first response module 41 is further configured to: a pushpin assembly is disposed in the restricted rotational position.
Optionally, the second response module 42 is specifically configured to:
responding to the turning instruction triggered by the sliding touch operation acting on the preset page;
determining the initial overturning position according to the initial sliding position of the sliding touch operation;
determining a sliding direction of the sliding touch operation as the flipping direction.
Optionally, the apparatus further includes a determining module 44, configured to, when the preset page is controlled to be turned to the rotation-limiting position:
judging whether the turning instruction meets a preset condition or not;
when the turning instruction meets a preset condition, the turning module 43 is further configured to control the preset page to turn according to a preset rule.
Optionally, the flipping module 43 is specifically configured to:
and determining a turning shaft according to the rotation limiting position, and controlling the preset page to continuously turn along the turning shaft.
Optionally, the flipping module 43 is specifically configured to:
if the number of the rotation limiting positions is 1, determining the overturning shaft according to the connecting line direction of the rotation limiting positions and the ending position for releasing the overturning instruction;
if the number of the rotation limiting positions is 2, determining the overturning shaft according to the connecting line direction of the rotation limiting positions;
and if the number of the rotation limiting positions is more than or equal to 3, determining the overturning shaft according to the position connecting line direction of the two rotation limiting positions closest to the end position of the overturning instruction.
The first response module 41 is further configured to:
responding to a setting operation acting on the preset page, and determining a turning parameter corresponding to the preset page;
the turning module 43 is further configured to determine a turning radius according to the turning parameter;
the first response module 41 is further configured to:
and receiving an adding instruction comprising area information, adding the transparent mask in the preset page according to the adding instruction, and determining the control area according to the transparent mask.
The specific principle and implementation of the page turning interaction device provided in this embodiment are similar to those of the embodiment shown in fig. 3, and are not described here again.
Fig. 6 is a block diagram illustrating an interactive device for page turning according to an exemplary embodiment of the present invention.
As shown in fig. 6, the interactive device for page turning provided by this embodiment includes:
a memory 61;
a processor 62; and
a computer program;
wherein the computer program is stored in the memory 61 and configured to be executed by the processor 62 to implement any of the page turning interaction methods described above.
The present embodiments also provide a computer-readable storage medium, having stored thereon a computer program,
the computer program is executed by a processor to implement any of the page turning interactive methods described above.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (13)

1. An interactive method for page turning is characterized in that a graphical user interface comprises a preset page;
the method comprises the following steps:
responding to a preset touch operation acting on the preset page, and determining a rotation limiting position of the preset page according to the position of a touch point of the preset touch operation;
responding to a turning instruction which is acted on the preset page and comprises direction information, and determining the initial turning position and the turning direction of the preset page according to the turning instruction;
controlling the preset page to turn according to the starting turning position, the turning direction and the rotation limiting position;
responding to a setting operation acting on the preset page, and determining a turning parameter corresponding to the preset page;
the turning of the preset page is controlled according to the starting turning position, the turning direction and the rotation limiting position, and the turning method comprises the following steps:
and controlling the preset page to turn according to the starting turning position, the turning direction, the turning parameters and the rotation limiting position, so that the turning effect of the page is presented in a user interface, and when the preset page is turned to the rotation limiting position, the preset page generates a turning stopping effect at the rotation limiting position.
2. The method of claim 1, further comprising:
and determining the number of the preset pages according to the touch pressure of the preset touch operation.
3. The method of claim 1, further comprising:
a pushpin assembly is disposed in the restricted rotational position.
4. The method according to claim 1, wherein the determining a starting flipping position and a flipping direction of the preset page according to a flipping instruction including direction information, in response to the flipping instruction acting on the control area, comprises:
responding to the turning instruction triggered by the sliding touch operation acting on the preset page;
determining the initial overturning position according to the initial sliding position of the sliding touch operation;
determining a sliding direction of the sliding touch operation as the flipping direction.
5. The method according to any one of claims 1 to 4, wherein when controlling the preset page to be turned to the rotation-restricting position, the method further comprises:
judging whether the turning instruction meets a preset condition or not;
and when the turning instruction meets a preset condition, controlling the preset page to turn according to a preset rule.
6. The method according to claim 5, wherein the controlling the preset page to turn according to a preset rule comprises:
and determining a turning shaft according to the rotation limiting position, and controlling the preset page to continuously turn along the turning shaft.
7. The method of claim 6, wherein determining a flip axis from the limited rotation position comprises:
and if the number of the rotation limiting positions is 1, determining the overturning shaft according to the connecting line direction of the positions of the rotation limiting positions and the ending position of the overturning instruction.
8. The method of claim 6, wherein determining a flip axis from the limited rotation position comprises:
and if the number of the rotation limiting positions is 2, determining the overturning shaft according to the connecting line direction of the rotation limiting positions.
9. The method of claim 6, wherein determining a flip axis from the limited rotation position comprises:
and if the number of the rotation limiting positions is more than or equal to 3, determining the overturning shaft according to the position connecting line direction of the two rotation limiting positions closest to the end position of the overturning instruction.
10. The method of claim 9, wherein the roll-over parameter comprises a roll-over radius.
11. An interactive device for page turning is applied to a mobile terminal capable of presenting a graphical user interface, and is characterized in that the graphical user interface comprises a preset page;
the device comprises:
the first response module is used for responding to a preset touch operation acting on the preset page and determining the rotation limiting position of the preset page according to the position of the touch point of the preset touch operation;
the second response module is used for responding to a turning instruction which acts on the preset page and comprises direction information, and determining the starting turning position and the turning direction of the preset page according to the turning instruction;
the turning module is used for controlling the preset page to turn according to the starting turning position, the turning direction and the rotation limiting position;
the first response module is further configured to determine a turning parameter corresponding to the preset page;
the turning module is specifically configured to control the preset page to turn according to the starting turning position, the turning direction, the turning parameter and the rotation limiting position, so that a turning effect of the page is presented in a user interface, and when the preset page is turned to the rotation limiting position, the preset page is enabled to generate a turning stopping effect at the rotation limiting position.
12. A page turning interaction device, comprising:
a memory;
a processor; and
a computer program;
wherein the computer program is stored in the memory and configured to be executed by the processor to implement the method of any of claims 1-10.
13. A computer-readable storage medium, having stored thereon a computer program,
the computer program is executed by a processor to implement the method according to any of claims 1-10.
CN201910689661.2A 2019-07-29 2019-07-29 Page turning interaction method, device and equipment and computer readable storage medium Active CN110413176B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910689661.2A CN110413176B (en) 2019-07-29 2019-07-29 Page turning interaction method, device and equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910689661.2A CN110413176B (en) 2019-07-29 2019-07-29 Page turning interaction method, device and equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN110413176A CN110413176A (en) 2019-11-05
CN110413176B true CN110413176B (en) 2021-07-09

Family

ID=68363800

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910689661.2A Active CN110413176B (en) 2019-07-29 2019-07-29 Page turning interaction method, device and equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110413176B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1568499A (en) * 2001-09-13 2005-01-19 电子图书系统有限公司 Electromechanical information browsing device
CN103180818A (en) * 2010-10-27 2013-06-26 谷歌公司 Animated page turning
WO2015190647A1 (en) * 2014-06-09 2015-12-17 Lg Electronics Inc. Display device executing bending operation and method of controlling therefor
CN107193463A (en) * 2016-03-15 2017-09-22 百度在线网络技术(北京)有限公司 The method and apparatus of gesture operation is simulated on the mobile apparatus

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180121053A1 (en) * 2016-08-31 2018-05-03 Andrew Thomas Nelson Textual Content Speed Player

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1568499A (en) * 2001-09-13 2005-01-19 电子图书系统有限公司 Electromechanical information browsing device
CN103180818A (en) * 2010-10-27 2013-06-26 谷歌公司 Animated page turning
WO2015190647A1 (en) * 2014-06-09 2015-12-17 Lg Electronics Inc. Display device executing bending operation and method of controlling therefor
CN107193463A (en) * 2016-03-15 2017-09-22 百度在线网络技术(北京)有限公司 The method and apparatus of gesture operation is simulated on the mobile apparatus

Also Published As

Publication number Publication date
CN110413176A (en) 2019-11-05

Similar Documents

Publication Publication Date Title
US11829578B2 (en) Devices, methods, and graphical user interfaces for interacting with user interface objects and providing feedback
US12086319B2 (en) Devices, methods, and graphical user interfaces for providing feedback during interaction with an intensity-sensitive button
US11054990B2 (en) Touch input cursor manipulation
US20240028133A1 (en) Devices, Methods, and Graphical User Interfaces for Providing a Home Button Replacement
JP6728275B2 (en) Virtual computer keyboard
KR102096513B1 (en) Touch input cursor manipulation
JP6584638B2 (en) Device and method for providing handwriting support in document editing
US9898180B2 (en) Flexible touch-based scrolling
US20190302984A1 (en) Method and device for controlling a flexible display device
KR20220075457A (en) Tactile feedback for user interfaces
KR102404636B1 (en) Tactile feedback for user interfaces
CN108635850B (en) Information processing method, device and storage medium
CN110413176B (en) Page turning interaction method, device and equipment and computer readable storage medium
US11635826B2 (en) Device, method, and graphical user interface for adjusting touch activation regions associated with selectable user interface elements
KR101325535B1 (en) Method, terminal, and recording medium for controlling screen
KR102499899B1 (en) Operation method of devices for e-book reader, application and devices for e-book reader
KR20240162655A (en) Multiple object editing method and program

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
GR01 Patent grant
GR01 Patent grant