CN112612399A - Moving method and device of suspension toolbar, intelligent interaction equipment and storage medium - Google Patents

Moving method and device of suspension toolbar, intelligent interaction equipment and storage medium Download PDF

Info

Publication number
CN112612399A
CN112612399A CN202011577120.XA CN202011577120A CN112612399A CN 112612399 A CN112612399 A CN 112612399A CN 202011577120 A CN202011577120 A CN 202011577120A CN 112612399 A CN112612399 A CN 112612399A
Authority
CN
China
Prior art keywords
moving
toolbar
speed
target
display interface
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.)
Granted
Application number
CN202011577120.XA
Other languages
Chinese (zh)
Other versions
CN112612399B (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.)
Anhui Hongcheng Opto Electronics Co Ltd
Original Assignee
Anhui Hongcheng Opto Electronics 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 Anhui Hongcheng Opto Electronics Co Ltd filed Critical Anhui Hongcheng Opto Electronics Co Ltd
Priority to CN202011577120.XA priority Critical patent/CN112612399B/en
Publication of CN112612399A publication Critical patent/CN112612399A/en
Application granted granted Critical
Publication of CN112612399B publication Critical patent/CN112612399B/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/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/04886Interaction 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 by partitioning the display area of the touch-screen or the surface of the digitising tablet into independently controllable areas, e.g. virtual keyboards or menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3438Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment monitoring of user actions
    • 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/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • User Interface Of Digital Computer (AREA)
  • Position Input By Displaying (AREA)

Abstract

The application provides a moving method and a moving device of a suspension toolbar, intelligent interaction equipment and a storage medium, which are applied to the intelligent interaction equipment, wherein the method comprises the following steps: monitoring a touch movement event of a user moving a suspension toolbar on a display interface of intelligent interaction equipment, and calculating a movement speed corresponding to the touch movement event; if the value of the moving speed is larger than a preset speed threshold value, determining a target position of the floating toolbar according to the moving track of the touch moving event, wherein the target position is located near the side edge of the display interface corresponding to the moving direction of the moving track in the display interface; and moving the suspension toolbar to the target position. The application improves the moving convenience of the suspension toolbar in the intelligent interaction equipment.

Description

Moving method and device of suspension toolbar, intelligent interaction equipment and storage medium
Technical Field
The application relates to the technical field of intelligent interaction equipment, in particular to a moving method and device of a suspension toolbar, intelligent interaction equipment and a storage medium.
Background
At present, the suspension toolbar is mainly applied to intelligent interaction equipment such as apples or android, a user can set corresponding operation tools in the suspension toolbar, and the tools can be quickly started through the suspension toolbar, so that the user can quickly and conveniently control the intelligent interaction equipment and operate the intelligent interaction equipment. On the intelligent interaction device, a user can move the floating toolbar in the display interface of the intelligent interaction device to a specific position, and then corresponding operation is executed through tools in the floating toolbar.
In the intelligent interactive equipment that the display interface size is little, like cell-phone, panel computer etc. the removal that the user can be convenient suspends the toolbar, but to the intelligent interactive equipment that the display interface size is big, like the TV, the user can need to remove the toolbar that suspends to the opposite side from one side of intelligent interactive equipment display interface, at this moment, the user can't be fast convenient remove the toolbar that suspends in the display interface. Optionally, when a plurality of users need to use the floating toolbar interactively in the display interface, the floating toolbar needs to be moved between two users, if the distance between the two users is long, one user is on the left side of the display interface of the intelligent interaction device, and the other user is on the right side of the display interface of the intelligent interaction device, then one user is required to move the floating toolbar intentionally, and the moving distance when the user moves the floating toolbar is equal to the moving distance of the floating toolbar.
Therefore, a method for conveniently moving the suspended toolbar in the intelligent interactive device is needed.
Disclosure of Invention
Based on the foregoing situation, a main object of the present application is to provide a method and an apparatus for moving a floating toolbar, and a computer-readable storage medium, so as to improve convenience of floating the toolbar in a mobile intelligent interactive device.
In order to achieve the purpose, the technical scheme adopted by the application is as follows:
a moving method of a floating toolbar is applied to intelligent interaction equipment and comprises the following steps:
monitoring a touch movement event of a user moving a suspension toolbar on a display interface of intelligent interaction equipment, and calculating a movement speed corresponding to the touch movement event;
if the value of the moving speed is larger than a preset speed threshold value, determining a target position of the floating toolbar according to the moving track of the touch moving event, wherein the target position is located near the side edge of the display interface corresponding to the moving direction of the moving track in the display interface;
and moving the suspension toolbar to the target position.
Optionally, if the value of the movement speed is greater than a preset speed threshold, calculating a horizontal axis speed of the touch movement event on a horizontal axis and a vertical axis speed of the touch movement event on a vertical axis of a coordinate system corresponding to the display interface; if the value of the horizontal axis speed is smaller than the value of the vertical axis speed, determining the target position to be located near a longitudinal side edge of the display interface corresponding to the moving direction of the moving track in the display interface, and if the value of the horizontal axis speed is larger than or equal to the value of the vertical axis speed, determining the target position to be located near a transverse side edge of the display interface corresponding to the moving direction of the moving track in the display interface;
or,
if the value of the moving speed is larger than a preset speed threshold value, calculating an included angle between the moving direction of the moving track and a horizontal axis and a vertical axis of a coordinate system corresponding to the display interface; if the included angle between the moving direction of the moving track and the transverse axis is smaller than the included angle between the moving direction of the moving track and the longitudinal axis, the target position is determined to be located near the longitudinal side edge of the display interface corresponding to the moving direction of the moving track in the display interface, and if the included angle between the moving direction of the moving track and the transverse axis is larger than or equal to the included angle between the moving direction of the moving track and the transverse axis, the target position is determined to be located near the transverse side edge of the display interface corresponding to the moving direction of the moving track in the display interface.
Optionally, if the value of the horizontal axis velocity is smaller than the value of the vertical axis velocity, the step of determining the target vertical coordinate corresponding to the target position includes:
if the value of the horizontal axis speed is smaller than the value of the vertical axis speed, judging whether the vertical axis speed is smaller than zero or larger than zero;
if the longitudinal axis speed is less than zero, determining that the longitudinal coordinate of the target is zero; if the speed of the longitudinal axis is greater than zero, determining the vertical coordinate of the target according to the height of the display interface and the height of the suspension toolbar;
the step of determining the target abscissa corresponding to the target position comprises the following steps:
calculating to obtain a horizontal coordinate to be determined according to the horizontal axis speed, the display interface size and the current horizontal coordinate of the suspension toolbar;
if the abscissa to be determined is smaller than zero, determining that the target abscissa is zero;
if the abscissa to be determined is larger than or equal to zero, judging whether the abscissa to be determined is larger than an interface width threshold, if so, determining the target abscissa as the interface width threshold; and if the abscissa to be determined is smaller than or equal to the interface width threshold, determining that the target abscissa is the sum of the interface width threshold and the current abscissa, wherein the interface width threshold is determined according to the width of the display interface and the width of the hovering toolbar.
Optionally, if the value of the horizontal axis velocity is greater than or equal to the value of the vertical axis velocity, the step of determining the target horizontal coordinate corresponding to the target position includes:
and if the value of the horizontal axis speed is greater than or equal to the value of the vertical axis speed, judging whether the horizontal axis speed is less than zero or greater than zero.
If the horizontal axis speed is less than zero, determining that the target horizontal axis is zero; if the horizontal axis speed is larger than zero, determining the target horizontal coordinate according to the width of the display interface and the width of the suspension toolbar;
the step of determining the target ordinate corresponding to the target position comprises the following steps:
calculating to obtain a vertical coordinate to be determined according to the vertical axis speed, the display interface size and the current vertical coordinate of the suspension toolbar;
if the vertical coordinate to be determined is smaller than zero, determining that the target vertical coordinate is zero; if the vertical coordinate to be determined is larger than or equal to zero, judging whether the vertical coordinate to be determined is larger than an interface height threshold value, if so, determining the target vertical coordinate to be the interface height threshold value; and if the vertical coordinate to be determined is smaller than or equal to the interface height threshold, determining that the target vertical coordinate is the sum of the interface height threshold and the current vertical coordinate, wherein the interface height threshold is determined according to the height of the display interface and the height of the suspension toolbar.
Optionally, the step of moving the floating toolbar to the target position is: moving the hover toolbar to the target location in a second order bezier curve mode.
Optionally, the step of calculating the moving speed corresponding to the touch moving event includes calculating a value of the moving speed, wherein the step of calculating the value of the moving speed includes:
calculating the number of pixels passed by the touch movement event;
determining the moving distance of the touch moving event according to the number of the pixels;
and obtaining the moving duration corresponding to the touch moving event, and calculating to obtain the value of the moving speed corresponding to the touch moving event according to the moving distance and the moving duration.
The application also provides a moving method of the suspension toolbar, which is applied to intelligent interaction equipment and comprises the following steps:
monitoring a touch movement event of a user moving a suspension toolbar on a display interface of intelligent interaction equipment, and calculating a movement speed corresponding to the touch movement event;
if the moving speed value is larger than a preset speed threshold value, determining a preset target position corresponding to the floating toolbar, wherein the preset target position is a preset position which is located in the display interface and used for displaying the floating toolbar, and the preset target position is located in front of a moving track of the touch moving event;
and moving the suspension toolbar to the preset target position.
The application still provides a mobile device of suspension toolbar, the mobile device of suspension toolbar is applied to intelligent mutual equipment, the mobile device of suspension toolbar includes:
the monitoring module is used for monitoring a touch movement event of a user moving the floating toolbar on the display interface of the intelligent interactive equipment;
the calculating module is used for calculating the moving speed corresponding to the touch moving event;
a position determining module, configured to determine a target position of the floating toolbar according to a movement track of the touch movement event if the value of the movement speed is greater than a preset speed threshold, where the target position is located near a side edge of the display interface, corresponding to a movement direction of the movement track, in the display interface;
and the moving module is used for moving the suspension toolbar to the target position.
The application also provides an intelligent interaction device, which comprises a memory, a processor and a floating toolbar moving program stored on the memory and running on the processor, wherein the floating toolbar moving program is used for realizing the floating toolbar moving method when being executed by the processor.
The present application also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the method of moving a hover toolbar as described above.
[ PROBLEMS ] the present invention
When the value of the moving speed of the touch moving event is larger than a preset speed threshold value, the target position of the suspension toolbar is determined according to the moving track of the touch moving event, the target position is located near the side edge of the display interface corresponding to the moving direction of the moving track in the display interface, then the suspension toolbar is moved to the target position, when the suspension toolbar is moved to the position where the coordinates of the target position are located, when the moving speed of the touch moving event is larger than the speed threshold value, the suspension toolbar is moved to the side edge of the display interface, the moving distance of the touch moving event is smaller than the moving distance of the suspension toolbar, and therefore moving convenience of the suspension toolbar in the intelligent interaction equipment is improved.
Other advantages of the present application will be described in the detailed description, and those skilled in the art will understand the technical features and technical solutions presented in the description.
Drawings
Alternative embodiments of the present application will be described below with reference to the accompanying drawings. In the figure:
FIG. 1 is a flow chart of one embodiment of a method for moving a floating toolbar according to the present application;
FIG. 2 is a schematic diagram of a first order Bezier curve in an embodiment of the present application;
FIG. 3 is a schematic diagram of a second order Bezier curve in an embodiment of the present application;
fig. 4 is a schematic structural diagram of an embodiment of a moving device of the floating toolbar according to the present application.
Detailed Description
It should be noted that step numbers (letter or number numbers) are used in this application to refer to certain specific method steps only for the purpose of convenience and brevity of description, and are not meant to limit the order of the method steps by letters or numbers. It will be clear to a person skilled in the art that the order of the steps of the method in question, as determined by the technology itself, should not be unduly limited by the presence of step numbers.
Fig. 1 is a flowchart of an embodiment of a method for moving a floating toolbar according to the present application, which includes the following steps.
Step S100, monitoring a touch movement event of a user moving a floating toolbar on a display interface of the intelligent interactive equipment, and calculating a movement speed corresponding to the touch movement event.
In this embodiment, the intelligent interaction device may be a device with a large touch display screen, such as a projector, an intelligent interaction large screen, or a television, or other devices with display and touch functions, such as a personal computer. In the display interface of intelligent interaction equipment, be provided with the suspension toolbar, the user can set up corresponding instrument in the suspension toolbar as required, and this instrument can be APP (application), can realize the screen capture instrument and the volume control instrument of screen capture function etc.. The user may move the hover toolbar within the display interface. The intelligent interaction device monitors touch movement events of a user moving the floating toolbar on a display interface of the intelligent interaction device in real time or in a timed mode. It can be appreciated that as the user moves the hover toolbar within the display interface, the intelligent interaction device may monitor for touch movement events. And when the intelligent interaction equipment monitors the touch movement event, the intelligent interaction equipment calculates the movement speed of the movement operation corresponding to the touch movement event.
Optionally, the calculation of the moving speed is implemented by using the number of the pixel points, and specifically, the step of calculating the value of the moving speed includes: calculating the number of pixels through which the touch movement event passes, determining the movement distance of the touch movement event according to the number of the pixels, acquiring the movement time length corresponding to the touch movement event, and calculating the value of the movement speed corresponding to the touch movement event according to the movement distance and the movement time length.
In an optional embodiment, the step of calculating the moving speed corresponding to the touch moving event includes:
step a1, calculating the first pixel number of the touch movement event passing on the horizontal axis and the second pixel number of the touch movement event passing on the vertical axis in the display interface coordinate system.
Step b1, determining a first distance moved by the touch move event on the horizontal axis according to the first number of pixels, and determining a second distance moved by the touch move event on the vertical axis according to the second number of pixels.
Specifically, in the display interface of the intelligent interaction device, a coordinate system is provided, and an origin, a positive direction of a horizontal axis and a positive direction of a longitudinal axis of the coordinate system can be set according to specific needs, for example, the upper left corner of the display interface can be set as the origin of coordinates, the positive direction of the horizontal axis is a direction from the upper left corner to the right, and the positive direction of the longitudinal axis is a direction from the upper left corner to the lower left corner. When the intelligent interaction device monitors a touch movement event, the intelligent interaction device calculates the number of pixels of the touch movement event passing through the horizontal axis and the number of pixels of the touch movement event passing through the vertical axis of the display interface coordinate system. For convenience of distinction, in the present embodiment, the number of pixels through which the touch movement event passes on the horizontal axis of the coordinate system is referred to as a first pixel number, and the number of pixels through which the touch movement event passes on the vertical axis of the coordinate system is referred to as a second pixel number.
It can be understood that, in the display interface, the size of each pixel is fixed, and therefore, after the intelligent interaction device determines the first number of pixels and the second number of pixels, the intelligent interaction device can determine the distance moved by the touch movement event on the horizontal axis according to the first number of pixels, and can determine the distance moved by the touch movement event on the vertical axis according to the second number of pixels. The touch movement event moves on the horizontal axis by a first distance, and moves on the vertical axis by a second distance.
Step c1, obtaining a movement duration corresponding to the touch movement event, dividing the first distance by the movement duration to obtain a horizontal axis speed of the touch movement event on the horizontal axis, and dividing the second distance by the movement duration to obtain a vertical axis speed of the touch movement event on the vertical axis.
And d1, calculating the value of the moving speed corresponding to the touch moving event according to the value of the horizontal axis speed and the value of the vertical axis speed.
It should be noted that the complete touch movement event includes three operations, which are a touch pressing operation, a touch movement operation, and a touch lifting operation, respectively, where a position corresponding to the touch pressing operation is a start point position of the touch movement event, a position corresponding to the touch lifting operation is an end point position of the touch movement event, a coordinate corresponding to the start point position is a touch start point coordinate of the touch movement event, and a coordinate corresponding to the end point position is a touch end point coordinate of the touch movement event. The intelligent interaction equipment is provided with a timer, and when the intelligent interaction equipment monitors the touch pressing operation, the timer is started to start timing; and when the intelligent interaction equipment monitors the touch lifting operation, stopping timing, and thus obtaining the moving time length of the touch moving event corresponding to the moving operation through the timer.
After the intelligent interaction device obtains the first distance, the second distance and the moving duration, the intelligent interaction device divides the first distance by the moving duration to obtain the moving speed of the touch moving event on the horizontal axis, namely the speed of the horizontal axis, and divides the second distance by the moving duration to obtain the moving speed of the touch moving event on the vertical axis, namely the speed of the vertical axis. And after the intelligent interaction equipment obtains the speed of the horizontal axis and the speed of the vertical axis, the intelligent interaction equipment calculates the value of the corresponding moving speed of the touch moving event according to the value of the speed of the horizontal axis and the value of the speed of the vertical axis through a trigonometric function or a pythagorean theorem. In the embodiment of the present application, the velocity is a vector, and when the moving direction of the touch movement event on the horizontal axis is the same as the positive direction of the horizontal axis, the horizontal axis velocity is a positive value, and when the moving direction of the touch movement event on the horizontal axis is opposite to the positive direction of the horizontal axis, the horizontal axis velocity is a negative value; when the moving direction of the touch moving event on the vertical axis is the same as the positive direction of the vertical axis, the speed of the vertical axis is a positive value, and when the moving direction of the touch moving event on the vertical axis is opposite to the positive direction of the vertical axis, the speed of the vertical axis is a negative value, and the positive and negative of the moving speed can be determined through the positive and negative of the speed of the horizontal axis and the speed of the vertical axis. The sign of the velocity is used to indicate the direction. The value of the velocity in this embodiment represents the absolute value of the velocity. If the horizontal axis velocity value indicates the absolute value of the horizontal axis velocity, the vertical axis velocity value indicates the absolute value of the vertical axis velocity.
Step S200, if the value of the moving speed is larger than a preset speed threshold value, determining a target position of the floating toolbar according to the moving track of the touch moving event, wherein the target position is located near the side edge of the display interface corresponding to the moving direction of the moving track in the display interface.
After the intelligent interaction device calculates the moving speed, the intelligent interaction device judges whether the value of the moving speed is greater than a preset speed threshold value, namely whether the absolute value of the moving speed is greater than the preset speed threshold value. The speed threshold can be set according to specific needs, for example, the speed threshold can be set according to the size of the display interface, so that the speed threshold is increased along with the increase of the display interface; or setting a speed threshold according to pixels of the display interface, at this time, setting a speed horizontal threshold corresponding to a horizontal axis and a speed vertical threshold corresponding to a vertical axis, and then calculating to obtain the speed threshold according to the speed horizontal threshold and the speed vertical threshold based on the pythagorean theorem or a trigonometric function, specifically, determining the number of horizontal pixels corresponding to the horizontal axis, and setting the speed horizontal threshold as a% of the number of horizontal pixels; determining the number of vertical pixels corresponding to the vertical axis, and setting the speed vertical threshold as B% of the number of vertical pixels, where a% and B% may be equal or unequal, for example, a% or B% may be set as 5%, 8%, 15%, and the like.
And if the value of the moving speed is larger than the preset speed threshold value, the intelligent interaction equipment determines the target position of the floating toolbar according to the moving track of the touch moving event. And the target position is positioned near the side edge of the display interface corresponding to the moving direction of the moving track in the display interface. Specifically, in the coordinate system of the display interface, the target position may be represented by one coordinate, and for convenience of description, the present embodiment records the coordinate of the target position as the target position coordinate. It should be noted that, when the minimum distance between the moving reference point of the floating toolbar and the side edge of the display interface (the side edge close to the target position coordinate) is smaller than the preset distance, it indicates that the target position is already near the side edge of the display interface, and the preset distance may be set according to specific needs, and the size of the preset distance is not particularly limited in this embodiment. The moving reference point is a moving position of the floating toolbar, such as the moving reference point of the floating toolbar can be arranged at the upper left corner, the lower right corner or other positions in the floating toolbar. If the moving reference point is set at the upper left corner of the floating toolbar and the floating toolbar is moved from the left side to the right side of the display interface, when the distance between the moving reference point and the right side of the display interface is equal to the width of the floating toolbar (the distance between the left side and the right side of the floating toolbar), it indicates that the distance between the right side of the floating toolbar and the right side of the display interface is zero, that is, the floating toolbar is moved to the rightmost side of the display interface.
It should be noted that the moving speed is a vector, and therefore, the intelligent interaction device may also determine the target position of the hover toolbar according to the direction corresponding to the moving speed of the touch movement event, that is, determine the target position of the hover toolbar according to the moving direction of the moving track of the touch movement event. In the present embodiment, the coordinates of the target position are written as target position coordinates. The floating start point coordinate corresponding to the floating toolbar and the touch start point coordinate of the touch movement event are the same coordinate, but the target position coordinate corresponding to the floating toolbar and the touch end point coordinate of the touch movement event are not the same coordinate, and the distance between the target position coordinate corresponding to the floating toolbar and the touch start point coordinate corresponding to the touch movement event is larger than the distance between the touch end point coordinate and the touch end point coordinate of the touch movement event.
Optionally, step S200 includes:
step S201, if the value of the moving speed is larger than a preset speed threshold value, calculating the horizontal axis speed of the touch moving event on the horizontal axis and the vertical axis speed of the touch moving event on the vertical axis of a coordinate system corresponding to the display interface; and if the value of the horizontal axis speed is greater than or equal to the value of the vertical axis speed, determining the target position as being located near the display interface horizontal side edge corresponding to the moving direction of the moving track in the display interface.
In this embodiment, the coordinate system origin is set at one of the four corners of the display interface, and the movement reference point of the floating toolbar is set at one of the corners of the frame of the floating toolbar. It can be understood that the calculation principle of the coordinate system origin at other positions of the display interface is the same as the calculation principle of the coordinate system origin at one of the four corners of the display interface, and the details are not repeated herein.
If the value of the moving speed is larger than the preset speed threshold value, the intelligent interaction device calculates the horizontal axis speed and the vertical axis speed of the touch moving event on the horizontal axis of the coordinate system corresponding to the display interface, namely calculates the horizontal axis speed and the vertical axis speed of the moving speed on the horizontal axis of the coordinate system corresponding to the display interface. After the intelligent interaction equipment calculates the speed of the horizontal axis and the speed of the vertical axis, the intelligent interaction equipment judges whether the value of the speed of the horizontal axis is smaller than that of the speed of the vertical axis.
It can be understood that when the value of the horizontal axis velocity is smaller than that of the vertical axis velocity, it indicates that the vertical axis direction is the primary direction of the floating toolbar moving, and the horizontal axis direction is the secondary direction of the floating toolbar moving; when the value of the horizontal axis speed is larger than or equal to the value of the vertical axis speed, the horizontal axis direction is the main direction of the movement of the floating toolbar, and the vertical axis direction is the secondary direction of the movement of the floating toolbar. If the speed of the longitudinal axis is a positive value, indicating that the suspension toolbar moves towards the positive direction of the longitudinal axis; if the speed of the longitudinal axis is a negative value, the floating toolbar moves towards the negative direction of the longitudinal axis, namely moves towards the direction opposite to the positive direction of the longitudinal axis; if the speed of the horizontal axis is a positive value, the suspension toolbar moves towards the positive direction of the horizontal axis; if the horizontal axis velocity is negative, it indicates that the floating toolbar moves towards the negative direction of the horizontal axis, namely, towards the direction opposite to the positive direction of the horizontal axis, namely, the moving direction of the floating toolbar can be determined according to the positive and negative of the horizontal axis velocity and the vertical axis velocity.
If the value of the speed of the horizontal axis is smaller than the value of the speed of the vertical axis, the floating toolbar is indicated to move mainly in the direction of the vertical axis, and at the moment, the intelligent interaction device determines the target position to be located in the display interface and near the longitudinal side edge of the display interface corresponding to the moving direction of the moving track; if the value of the horizontal axis speed is larger than or equal to the value of the vertical axis speed, it indicates that the floating toolbar mainly moves in the horizontal axis direction, and at the moment, the intelligent interaction device determines the target position to be located in the display interface and near the horizontal side edge of the display interface corresponding to the moving direction of the moving track.
Optionally, in step S201, if the value of the horizontal axis velocity is smaller than the value of the vertical axis velocity, the step of determining the target position as being located near a longitudinal side of the display interface corresponding to the moving direction of the moving trajectory includes:
and g2, if the value of the horizontal axis speed is smaller than the value of the vertical axis speed, judging whether the vertical axis speed is smaller than zero or larger than zero.
Step h2, determining that the longitudinal axis speed is less than zero, and determining that the target longitudinal coordinate is zero; and if the speed of the longitudinal axis is greater than zero, determining the vertical coordinate of the target according to the height of the display interface and the height of the suspension toolbar.
If the horizontal axis speed value is smaller than the vertical axis speed value, the intelligent interaction equipment judges whether the vertical axis speed is smaller than zero or larger than zero, and if the vertical axis speed is smaller than zero, the intelligent interaction equipment determines that the target vertical coordinate is zero; and if the speed of the longitudinal axis is determined to be larger than zero, determining the target longitudinal coordinate according to the height of the display interface and the height of the suspension toolbar, and optionally, determining the target longitudinal coordinate to be the product of the height of the display interface and a preset first height coefficient by the intelligent interaction equipment, namely determining the product of the height of the display interface and the first height coefficient to be the target longitudinal coordinate, so as to determine the target position to be near the longitudinal side edge of the display interface corresponding to the moving direction of the moving track according to the target longitudinal coordinate. The first height coefficient is increased along with the increase of the height of the floating toolbar, a user can set the size of the first height coefficient according to specific needs, and the size of the first height coefficient is not specifically limited in this embodiment. The target ordinate is an ordinate of the target position. Therefore, after the target ordinate is determined, the intelligent interaction device determines the target position to be near the longitudinal side of the display interface corresponding to the moving direction of the moving track according to the target ordinate. It will be appreciated that at this point the ordinate of the target position is determined, the ordinate of the target position being near the longitudinal side of the display interface, and the abscissa of the target position being indeterminate.
Optionally, the moving method of the floating toolbar further includes a step of determining a target abscissa corresponding to the target position, and the step of determining the target abscissa corresponding to the target position includes:
and b2, calculating to-be-determined horizontal coordinates according to the horizontal axis speed, the display interface size and the current horizontal coordinates of the suspension toolbar.
Alternatively, if it is determined that the value of the horizontal axis velocity is smaller than the value of the vertical axis velocity, the intelligent interaction device multiplies the horizontal axis velocity by a preset horizontal axis offset coefficient, and determines the product between the horizontal axis velocity and the horizontal axis offset coefficient as the first product. The horizontal axis offset coefficient is set by the user according to specific needs, and the size of the horizontal axis offset coefficient is not particularly limited in this embodiment, for example, the horizontal axis offset coefficient may be set to 1.5 or 2. It is understood that the horizontal axis offset coefficient increases as the display interface size increases. And after the intelligent interaction equipment obtains the first product, the intelligent interaction equipment adds the first product and the current abscissa of the current position coordinate to calculate the sum of the first product and the current abscissa, and determines the sum of the first product and the current abscissa as the abscissa to be determined.
Step c2, if the abscissa to be determined is less than zero, determining the target abscissa as zero; if the abscissa to be determined is larger than or equal to zero, judging whether the abscissa to be determined is larger than an interface width threshold, if so, determining the target abscissa as the interface width threshold; if the abscissa to be determined is smaller than or equal to the interface width threshold, determining the target abscissa as the sum of the interface width threshold and the current abscissa, and determining the target position as the position near the longitudinal side of the display interface corresponding to the moving direction of the moving track according to the target abscissa. The interface width threshold is determined according to the width of the display interface and the width of the floating toolbar, optionally, a product of the display interface width and a preset first width coefficient is calculated to obtain a second product, and the second product is used as the interface width threshold.
After the intelligent interaction device calculates the abscissa to be determined, the intelligent interaction device judges whether the abscissa to be determined is smaller than zero. And if the abscissa to be determined is smaller than zero, the intelligent interaction equipment determines that the target abscissa is zero. If the abscissa to be determined is larger than or equal to zero, the intelligent interaction equipment multiplies the width of the display interface by a preset first width coefficient to calculate the product of the width of the display interface and the first width coefficient, and records the product of the width of the display interface and the first width coefficient as a second product. In the present embodiment, each numerical value is calculated by the number of pixels, and therefore, the display interface width can be expressed by the number of pixels. In other embodiments, the units involved in the calculation process may also be expressed in units of length, such as centimeters, decimeters, etc., as long as the units are unified in the calculation process. The width and height of the display interface are pre-stored in the display interface. The first width coefficient may be set according to a width of the floating toolbar, the width coefficient increases with an increase in the width of the floating toolbar, and the floating toolbar may be prevented from being moved out of the display interface by the first width coefficient. Specifically, the first width coefficient may be set to 0.85, 0.9, or the like.
And after the intelligent interaction equipment calculates to obtain the second product, the intelligent interaction equipment judges whether the abscissa to be determined is larger than the second product. If the abscissa to be determined is determined to be larger than the second product, the intelligent interaction equipment determines the target abscissa as the second product, namely determines the second product as the target abscissa; and if the abscissa to be determined is less than or equal to the second product, the intelligent interactive screen device determines that the target abscissa is the sum of the second product and the origin abscissa, namely, the sum of the second product and the origin abscissa is determined as the target abscissa. The target abscissa is the abscissa of the target position. After the target abscissa and the target ordinate are determined, the intelligent interaction equipment determines the positions of the target abscissa and the target ordinate as target positions, and at the moment, the target positions are located near the longitudinal side edges of the display interface corresponding to the moving direction of the moving track.
Optionally, in step S201, if the value of the horizontal axis velocity is greater than or equal to the value of the vertical axis velocity, the step of determining the target position as being located near a lateral side of the display interface corresponding to the moving direction of the moving trajectory includes:
and i2, if the value of the horizontal axis velocity is greater than or equal to the value of the vertical axis velocity, determining whether the horizontal axis velocity is less than zero or greater than zero.
Step j2, if the horizontal axis speed is less than zero, determining that the target horizontal axis is zero; and if the horizontal axis speed is greater than zero, the width of the display interface and the width of the floating toolbar are determined.
If the value of the horizontal axis speed is determined to be larger than or equal to the value of the vertical axis speed, the intelligent interaction equipment judges whether the horizontal axis speed is smaller than zero or larger than zero. If the speed of the cross shaft is determined to be less than zero, the intelligent interaction equipment determines that the target cross shaft is zero; if the horizontal axis speed is determined to be greater than zero, the intelligent interaction device determines a target abscissa as a product of the display interface width and a preset second width coefficient according to the display interface width and the width of the hovering toolbar, that is, determines the product of the display interface width and the second width coefficient as the target abscissa, and determines the target position as the position near the lateral side of the display interface corresponding to the moving direction of the moving track according to the target abscissa, wherein the second width coefficient may be equal to the first width coefficient or may not be equal to the first width coefficient. After the intelligent interaction device determines the target abscissa, the target position is determined to be located in the display interface and near the lateral side of the display interface corresponding to the moving direction of the moving track according to the target abscissa, it can be understood that the target abscissa is the coordinate near the lateral side of the display interface, at this time, only the coordinate in the lateral axis direction of the target position is defined as the target abscissa, the coordinate in the longitudinal axis direction of the target position is not defined, and the coordinate in the longitudinal axis direction of the target position can be set according to specific needs.
Optionally, the moving method of the floating toolbar further includes a step of determining a target ordinate corresponding to the target position, where the step of determining the target ordinate corresponding to the target position includes:
step l2, calculating to-be-determined vertical coordinates according to the vertical axis speed, the display interface size and the current vertical coordinates of the suspension toolbar, calculating a product between the vertical axis speed and a preset vertical axis offset coefficient to obtain a third product, and calculating the sum of the third product and the current vertical coordinates of the current position coordinates to obtain the to-be-determined vertical coordinates.
Step m2, if the vertical coordinate to be determined is smaller than zero, determining that the target vertical coordinate is zero; if the vertical coordinate to be determined is larger than or equal to zero, judging whether the vertical coordinate to be determined is larger than an interface height threshold value, if so, determining the target vertical coordinate to be the interface height threshold value; if the vertical coordinate to be determined is smaller than or equal to the interface height threshold, determining that the target vertical coordinate is the sum of the interface height threshold and the current vertical coordinate, wherein the interface height threshold is determined according to the height of the display interface and the height of the suspension toolbar, optionally, calculating the product of the height of the display interface and a preset second height coefficient to obtain a fourth product, and taking the fourth product as the interface width threshold.
Optionally, the intelligent interactive device calculates a product between the vertical axis velocity and a preset vertical axis offset coefficient, and records the product between the vertical axis velocity and the vertical axis offset coefficient as a third product. In this embodiment, the magnitude of the vertical axis offset coefficient is not specifically limited, as long as the distance moved by the floating toolbar is greater than the movement distance corresponding to the touch movement event, and the vertical axis offset coefficient may be equal to the horizontal axis offset coefficient or may not be equal to the horizontal axis offset coefficient. The vertical axis shift factor increases with increasing display interface size. And after the intelligent interaction equipment calculates the third product, the intelligent interaction equipment calculates the sum of the third product and the current vertical coordinate of the current position coordinate, determines the sum of the third product and the current vertical coordinate as the vertical coordinate to be determined, and judges whether the vertical coordinate to be determined is smaller than zero. If the vertical coordinate to be determined is smaller than zero, determining that the vertical coordinate of the target is zero; and if the vertical coordinate to be determined is less than or equal to zero, the intelligent interaction equipment calculates the product of the height of the display interface and a preset second height coefficient, and records the product of the height of the display interface and the second height coefficient as a fourth product. The second height coefficient may be equal to the first height coefficient, or may not be equal to the first height coefficient.
And after the intelligent interaction equipment calculates to obtain the fourth product, the intelligent interaction equipment judges whether the ordinate to be determined is greater than the fourth product. If the vertical coordinate to be determined is larger than the fourth product, the intelligent interaction equipment determines that the target vertical coordinate is the fourth product; and if the vertical coordinate to be determined is smaller than or equal to the fourth product, the intelligent interaction equipment determines that the target vertical coordinate is the sum of the fourth product and the current vertical coordinate. After the target abscissa and the target ordinate are determined, the intelligent interaction equipment determines the positions of the target abscissa and the target ordinate as target positions, and at the moment, the target positions are located near the transverse side edges of the display interface corresponding to the moving direction of the moving track.
Or step S202, if the value of the moving speed is greater than a preset speed threshold value, calculating an included angle between the moving direction of the moving track and a horizontal axis and a vertical axis of a coordinate system corresponding to the display interface; if the included angle between the moving direction of the moving track and the transverse axis is smaller than the included angle between the moving direction of the moving track and the longitudinal axis, the target position is determined to be located near the longitudinal side edge of the display interface corresponding to the moving direction of the moving track in the display interface, and if the included angle between the moving direction of the moving track and the transverse axis is larger than or equal to the included angle between the moving direction of the moving track and the transverse axis, the target position is determined to be located near the transverse side edge of the display interface corresponding to the moving direction of the moving track in the display interface.
Optionally, if it is determined that the value of the moving speed is greater than the preset speed threshold, the intelligent interaction device calculates an included angle between the moving direction of the moving track and a horizontal axis and a vertical axis of a coordinate system corresponding to the display interface, specifically, the direction of the moving track may use a touch start point coordinate of the touch moving event as a start point and a touch end point coordinate as an end point, and connect the start point and the end point to obtain a moving connecting line, and then calculate an included angle between the moving connecting line and the horizontal axis to obtain an included angle between the direction of the moving track and the horizontal axis of the coordinate system; and calculating an included angle between the moving connecting line and the longitudinal axis to obtain an included angle between the direction of the moving track and the longitudinal axis of the coordinate. In this embodiment, for convenience of distinction, an angle between the direction of the moving track and a horizontal axis of the coordinate system is denoted as a first angle, and an angle between the direction of the moving track and a vertical axis of the coordinate system is denoted as a second angle. The moving direction of the moving track is the direction of moving the connecting line. After the intelligent interaction device calculates the first included angle and the second included angle, the intelligent interaction device judges whether the first included angle is smaller than the second included angle. If the first included angle is smaller than the second included angle, the intelligent interaction equipment determines that the target position is located in the display interface and is close to the longitudinal side edge of the display interface corresponding to the moving direction of the moving track; and if the first included angle is larger than or equal to the second included angle, the intelligent interaction equipment determines the target position as being positioned in the display interface and near the transverse side edge of the display interface corresponding to the moving direction of the moving track.
And step S300, moving the suspension toolbar to the target position.
And after the target position is determined, the intelligent interaction equipment moves the suspension toolbar to the target position.
Optionally, when the movement mode of the touch movement event is a straight line mode, the method for moving the hover toolbar further includes:
step a3, in the straight-line mode, constructing a first-order Bezier curve according to the current position coordinates of the suspension toolbar and the target position coordinates corresponding to the target position based on a first-order Bezier formula, and determining the first-order Bezier curve as a toolbar moving path for moving the suspension toolbar.
Step S300 includes: and moving the suspension toolbar to the target position according to the toolbar moving path.
And after the intelligent interaction equipment determines the current position coordinates of the floating toolbar and the target position coordinates corresponding to the target position, the intelligent interaction equipment determines the movement mode of the touch movement event. In this embodiment, there are two movement modes of the touch movement event, one is a straight line mode, and the other is a curve mode, and which movement mode is specifically adopted can be selected by the user according to specific needs. The current position coordinate of the hover toolbar may be a touch start coordinate of the touch move event, or may be any coordinate in the hover toolbar moving process. Specifically, the intelligent interaction device can determine the movement mode of the touch movement event according to the touch movement path of the touch movement event, and when the touch movement path is a straight line, the movement mode of the touch movement event is a straight line mode; when the touch movement path is a curve, the movement pattern of the touch movement event is a curve pattern. And after the intelligent interaction equipment determines the moving mode, the intelligent interaction equipment determines a toolbar moving path for moving the floating toolbar according to the current position coordinate and the target position coordinate based on the moving mode of the touch moving event, and moves the floating toolbar to the target position according to the determined toolbar moving path. It should be noted that the moving distance of the touch movement event is smaller than the moving distance of the hover toolbar.
Specifically, when the movement mode of the touch movement event is the straight line mode, the intelligent interaction device constructs a first-order bezier curve according to the current position coordinates and the target position coordinates based on a first-order bezier formula, and determines the first-order bezier curve as the toolbar movement path for moving the hover toolbar. Wherein, the expression of the first order Bessel formula:
B(t)=(1-t)P0+tP2,t∈[0,1];
wherein B (t) is Bessel formula, P0As current position coordinates, P2For the target position coordinate, in the present embodiment, t is optionally equal to 0, and in other embodiments, t may be set to other values. It should be noted that the first order bezier curve is a straight line, and specifically, reference may be made to the first order bezier curve shown in fig. 2, where in fig. 2, P is0For the position of the current position coordinate, P2Is the position of the target position coordinates. Optionally, during the process of moving the floating toolbar to the target position according to the first-order bezier curve, the intelligent interaction device may calculate each coordinate point to be passed through during the moving process through a linear regression equation.
Optionally, the moving method of the floating toolbar further includes:
step a, if the value of the moving speed is smaller than or equal to the speed threshold, determining a touch end point coordinate corresponding to the touch moving event, and moving the floating toolbar to the position of the touch end point coordinate.
Optionally, if it is determined that the value of the movement speed is smaller than or equal to the speed threshold, the intelligent interaction device determines a touch end point coordinate corresponding to the touch movement event, and moves the hover toolbar to the position of the touch end point coordinate. And the position of the touch end point coordinate is the position of the coordinate corresponding to the touch lifting operation. It can be understood that when the value of the moving speed is less than or equal to the speed threshold, it indicates that the operation corresponding to the touch moving event is a normal moving operation, as long as the floating toolbar is moved according to the specific moving operation of the user, at this time, the moving distance of the floating toolbar is equal to the moving distance of the operation corresponding to the touch moving event; when the value of the moving speed is greater than the speed threshold, it indicates that the operation corresponding to the touch moving event is a flick operation, or referred to as a fast drag operation, and at this time, the moving distance of the hover toolbar is greater than the moving distance of the operation corresponding to the touch moving event.
In the embodiment, when the value of the moving speed of the touch moving event is greater than the preset speed threshold, the target position of the floating toolbar is determined according to the moving track of the touch moving event, the target position is located near the side edge of the display interface corresponding to the moving direction of the moving track in the display interface, and then the floating toolbar is moved to the target position, so that when the floating toolbar is moved to the position of the target position coordinate, when the moving speed of the touch moving event is greater than the speed threshold, the floating toolbar is moved to the side edge of the display interface, and the moving distance of the touch moving event is smaller than the moving distance of the floating toolbar, so that the moving convenience of the floating toolbar in the intelligent interaction device is improved.
Optionally, a second embodiment of the method for moving the floating toolbar according to the present application is provided.
The second embodiment of the method for moving a floating toolbar differs from the above-described embodiment of the method for moving a floating toolbar in that the step of moving the floating toolbar to the target position is: moving the hover toolbar to the target location in a second order bezier curve mode, the moving the hover toolbar to the target location in a curve mode comprising:
and b3, calculating the control point coordinate corresponding to the second-order Bezier curve mode according to the current position coordinate of the suspension toolbar and the target position corresponding to the target position.
And when the moving mode of the moving touch event is determined to be the curve mode, the intelligent interaction equipment calculates the control point coordinate corresponding to the second-order Bezier mode according to the current position coordinate and the target position coordinate in the curve mode.
Optionally, in the step b3, the step of calculating the control point coordinate corresponding to the second-order bezier curve mode according to the current position coordinate of the floating toolbar and the target position coordinate corresponding to the target position includes:
and b31, calculating a first movement variation of the floating toolbar in a horizontal axis direction and a second movement variation in a vertical axis direction of the display interface coordinate system when the floating toolbar moves from the current position coordinate to the target position coordinate.
Specifically, the intelligent interaction device calculates a first movement variation of the floating toolbar in the direction of the horizontal axis and a second movement variation of the floating toolbar in the direction of the vertical axis of the display interface coordinate system when the floating toolbar moves from the current position coordinate to the target position coordinate. In the present embodiment, for convenience of description, the abscissa of the current position coordinate is taken as the current abscissa, the ordinate of the current position coordinate is taken as the current ordinate, and the abscissa of the target position coordinate is taken as the target abscissa, and the ordinate of the target position coordinate is taken as the target ordinate. It is understood that the first movement variation amount is equal to a difference between the current abscissa and the target ordinate, and the second movement variation amount is equal to a difference between the current ordinate and the target ordinate. The first movement change amount and the second movement change amount are positive values.
Judging whether the first movement variation is larger than the second movement variation; if the judgment result is yes, the following steps are executed:
step b32, judging whether the current vertical coordinate of the current position coordinate and/or the target vertical coordinate of the target position coordinate is smaller than a preset vertical axis threshold value.
After the intelligent interaction device calculates the first movement variation and the second movement variation, the intelligent interaction device judges whether the first movement variation is larger than the second movement variation. If it is determined that the first movement variation is greater than the second movement variation, the intelligent interaction device determines whether the current ordinate and/or the target ordinate is smaller than a preset ordinate threshold, where the ordinate threshold may be set according to specific requirements, and in this embodiment, the magnitude of the ordinate threshold is not specifically displayed, for example, the ordinate threshold may be determined according to the number of pixels of the ordinate in the coordinate system, the ordinate threshold is set to be a certain proportion of the number of pixels of the ordinate, and the proportion multiplied by the number of pixels of the ordinate is equal to the ordinate threshold, for example, the proportion may be set to be 0.2 or 0.3, and the like.
Step b33, if the current ordinate and/or the target ordinate is smaller than the ordinate threshold, determining the ordinate with the larger coordinate value in the current ordinate and the target ordinate as the first ordinate, and determining the sum of the first ordinate and the ordinate threshold as the ordinate of the control point coordinate.
If the current ordinate and/or the target ordinate is smaller than the ordinate threshold value, the intelligent interaction device determines the ordinate with the larger coordinate value in the current ordinate and the target ordinate as the first ordinate, calculates the sum of the first ordinate and the ordinate threshold value, and determines the sum of the first ordinate and the ordinate threshold value as the ordinate of the control point coordinate. Specifically, if it is determined that both the current ordinate and the target ordinate are smaller than the ordinate threshold, the intelligent interaction device determines whether the current ordinate is greater than or equal to the target ordinate, and if it is determined that the current ordinate is greater than or equal to the target ordinate, the intelligent interaction device determines the current ordinate as the first ordinate, and then determines the sum of the first ordinate and the ordinate threshold as the ordinate of the control point coordinate, that is, determines the sum of the current ordinate and the ordinate threshold as the ordinate of the control point coordinate; if the intelligent interaction equipment determines that the current vertical coordinate is smaller than the target vertical coordinate, the target vertical coordinate is determined as a first vertical coordinate, then the sum of the first vertical coordinate and the vertical axis threshold is determined as the vertical coordinate of the control point coordinate, namely the sum of the target vertical coordinate and the vertical axis threshold is determined as the vertical coordinate of the control point coordinate.
When the current vertical coordinate is larger than or equal to the vertical axis threshold value but the target vertical coordinate is smaller than the vertical axis threshold value, the current vertical coordinate is larger than the target vertical coordinate, the intelligent interaction device determines the current vertical coordinate as a first vertical coordinate, and determines the sum of the first vertical coordinate and the vertical axis threshold value as the vertical coordinate of the control point coordinate. If the current ordinate is smaller than the ordinate threshold value, but the target ordinate is larger than or equal to the ordinate threshold value, which indicates that the target ordinate is larger than the current ordinate, the intelligent interaction device determines the target ordinate as the first ordinate, and determines the sum of the first ordinate and the ordinate threshold value as the ordinate of the control point coordinate.
Step b34, if the current ordinate and the target ordinate are greater than or equal to the ordinate threshold, determining the ordinate with the smaller coordinate value of the current ordinate and the target ordinate as the second ordinate, and determining the difference value obtained by subtracting the ordinate threshold from the second ordinate as the ordinate of the control point coordinate.
Step b35, calculating the current abscissa of the current position coordinate and the average abscissa of the target position coordinate, and determining the average abscissa as the abscissa of the control point coordinate.
If the intelligent interaction equipment determines that the current ordinate and the target ordinate are both larger than or equal to the ordinate threshold, the intelligent interaction equipment judges the ordinate with the smaller coordinate value in the current ordinate and the target ordinate, and determines the ordinate with the smaller coordinate value as the second ordinate. Specifically, if the current ordinate is smaller than the target ordinate, the intelligent interaction device determines the current ordinate as a second ordinate; and if the current vertical coordinate is larger than or equal to the target vertical coordinate, the intelligent interaction equipment determines the target vertical coordinate as a second vertical coordinate. And after the intelligent interaction equipment determines the second ordinate, the intelligent interaction equipment subtracts the longitudinal axis threshold value from the second ordinate to obtain a difference value between the second ordinate and the longitudinal axis threshold value, and then the difference value is determined as the ordinate of the control point coordinate. The intelligent interaction equipment calculates the sum of the current abscissa and the target abscissa, then divides the sum of the current abscissa and the target abscissa by two to obtain the average abscissa of the current abscissa and the target abscissa, and determines the average abscissa as the abscissa of the control point coordinate.
Optionally, if the determination result of determining whether the first movement variation is larger than the second movement variation is negative, the following steps are performed:
step b36, judging whether the current abscissa of the current position coordinate and/or the target abscissa of the target position coordinate is smaller than a preset abscissa threshold.
If the intelligent interaction device determines that the first movement variation is smaller than or equal to the second movement variation, the intelligent interaction device judges whether the current abscissa and/or the target abscissa is smaller than a preset abscissa threshold value. In this embodiment, the horizontal axis threshold may be equal to the vertical axis threshold, and the horizontal axis threshold may not be equal to the vertical axis threshold.
Step b37, if the current abscissa and/or the target abscissa is smaller than the abscissa threshold, determining the abscissa with the larger coordinate value of the current abscissa and the target abscissa as the first abscissa, and determining the sum of the first abscissa and the abscissa threshold as the abscissa of the control point coordinate.
If the current abscissa and/or the target abscissa is determined to be smaller than the abscissa threshold, the intelligent interaction device determines the abscissa with the larger coordinate value in the current abscissa and the target abscissa as the first abscissa, calculates the sum of the first abscissa and the abscissa threshold, and determines the sum of the first abscissa and the abscissa threshold as the abscissa of the control point coordinate. Specifically, if it is determined that both the current abscissa and the target abscissa are smaller than the abscissa threshold, the intelligent interaction device judges whether the current abscissa is greater than or equal to the target abscissa, and if it is determined that the current abscissa is greater than or equal to the target abscissa, the current abscissa is determined as the first abscissa, and then the sum of the first abscissa and the abscissa threshold is determined as the abscissa of the control point coordinate, that is, the sum of the current abscissa and the abscissa threshold is determined as the abscissa of the control point coordinate; if the intelligent interaction equipment determines that the current abscissa is smaller than the target abscissa, the target abscissa is determined as a first abscissa, and then the sum of the first abscissa and the abscissa threshold is determined as the abscissa of the control point coordinate, namely the sum of the target abscissa and the abscissa threshold is determined as the abscissa of the control point coordinate.
If the current abscissa is determined to be greater than or equal to the abscissa threshold value, but the target abscissa is less than the abscissa threshold value, which indicates that the current abscissa is greater than the target abscissa, determining the current abscissa as the first abscissa, and determining the sum of the current abscissa and the abscissa threshold value as the abscissa of the coordinates of the control point. If the current abscissa is determined to be smaller than the abscissa threshold value, but the target abscissa is greater than or equal to the abscissa threshold value, which indicates that the target abscissa is greater than the current abscissa, the target abscissa is determined as a first abscissa, and the sum of the target abscissa and the abscissa threshold value is determined as the abscissa of the coordinates of the control point.
Step b38, if the current abscissa and the target abscissa are greater than or equal to the abscissa threshold, determining the abscissa having the smaller coordinate value of the current abscissa and the target abscissa as the second abscissa, and determining the difference between the second abscissa and the abscissa minus the abscissa threshold as the abscissa of the control point coordinate.
Step b39, calculating the current vertical coordinate of the current position coordinate and the average vertical coordinate of the target position coordinate, and determining the average vertical coordinate as the vertical coordinate of the control point coordinate.
If the intelligent interaction equipment determines that the current abscissa and the target abscissa are both larger than or equal to the abscissa threshold value, the intelligent interaction equipment judges the abscissa with a small coordinate value in the current abscissa and the target abscissa, and determines the abscissa with the small coordinate value as the second abscissa, specifically, if the current abscissa is smaller than the target abscissa, the current abscissa is determined as the second abscissa; and if the current abscissa is larger than or equal to the target abscissa, determining the target abscissa as a second abscissa. And after the intelligent interaction equipment determines the second abscissa, the intelligent interaction equipment subtracts the abscissa threshold value from the second abscissa to obtain a difference value between the second abscissa and the abscissa threshold value, and then determines the difference value as the abscissa of the control point coordinate.
The intelligent interaction equipment calculates the sum of the current ordinate and the target ordinate, then divides the sum of the current ordinate and the target ordinate by two to obtain the average ordinate of the current ordinate and the target ordinate, and determines the average ordinate as the ordinate of the control point coordinate.
And c3, constructing a second-order Bezier curve according to the current position coordinates, the target position coordinates and the control point coordinates based on a second-order Bezier formula, and determining the second-order Bezier curve as a toolbar moving path for moving the suspension toolbar.
And d3, moving the suspension toolbar to the target position according to the toolbar moving path.
After the intelligent interaction equipment calculates and obtains the control point coordinates, the intelligent interaction equipment constructs a second-order Bezier curve according to the current position coordinates, the target position coordinates and the control point coordinates based on a second-order Bezier formula, determines the second-order Bezier curve as a toolbar moving path for moving the suspension toolbar, and moves the suspension toolbar to the target position according to the toolbar moving path. Specifically, the expression of the second order bezier formula is:
B(t1)=(1-t1)2P0+2t1(1-t1)P1+t1 2P2,t1∈[0,1]。
wherein, P0As current position coordinates, P2As target position coordinates, P1Are control point coordinates. When t is 0, it indicates that the levitation toolbar starts moving, and when t is 1, it indicates that the levitation toolbar stops moving, and the levitation toolbar is in a second order besselDuring the curve movement, the value of t is constantly changing, specifically, gradually changing from 0 to 1. Specifically, the second order bezier curve may refer to fig. 3, where in fig. 3, P0For the position of the current position coordinate, P2Is the position of the target position coordinate, P1Is the position of the control point coordinates.
It should be noted that, in the moving process of the floating toolbar, the intelligent interaction device dynamically calculates the coordinates of the control point, that is, the coordinates of the control point are constantly changing, so that a complete second-order bezier curve can be constructed by the current position coordinates, the target position coordinates and the coordinates of the control point. Through the control points in the second-order Bezier curve, the suspension toolbar can be guaranteed not to be influenced by the display interface boundary in the moving process.
According to the method and the device, the second-order Bezier curve is constructed according to the current position coordinate, the target position coordinate and the control point coordinate through the second-order Bezier formula, and the second-order Bezier curve is determined as the toolbar moving path of the movable suspension toolbar, so that when the path corresponding to the movable touch event triggered by a user is a curve, the suspension toolbar is controlled to continue to move to the position of the target position coordinate according to a curve mode, and the moving intelligence of the suspension toolbar is improved.
Optionally, the moving method of the floating toolbar further includes:
and c, monitoring a touch movement event of a user moving the floating toolbar on the display interface of the intelligent interactive equipment, and calculating the movement speed corresponding to the touch movement event.
And d, if the value of the moving speed is larger than a preset speed threshold value, determining a preset target position corresponding to the floating toolbar, wherein the preset target position is a preset position which is located in the display interface and used for displaying the floating toolbar, and the preset target position is located in front of the moving track of the touch moving event.
And e, moving the suspension toolbar to the preset target position.
It should be noted that, in this embodiment, the execution process of step c is the same as that of step S100, and the description of this embodiment is not repeated. When the intelligent interaction device determines that the value of the moving speed is larger than a preset speed threshold value, the intelligent interaction device acquires a preset target position, the preset target position is a preset position which is located in the display interface and used for displaying the suspension toolbar, the preset target position is located in front of the moving track of the touch moving event, the preset target position can be a position range, namely the preset target position comprises a plurality of positions and can also be a position corresponding to a specific coordinate point, and through the preset target position, the distance range of the preset target position from the left side edge or the right side edge of the display interface and the distance range of the preset target position from the upper side edge or the lower side edge of the display interface can be limited. And after the intelligent interaction equipment determines the preset target position, moving the floating toolbar to the preset target position, so that the moving distance of the touch moving event is smaller than that of the floating toolbar, namely the moving distance of the touch moving event is smaller than that of the floating toolbar. Optionally, if it is determined that the moving speed is less than or equal to the speed threshold, the intelligent interaction device determines a touch end point coordinate corresponding to the touch moving event, and moves the hover toolbar to the position of the touch end point coordinate. And the position of the touch end point coordinate is the position of the coordinate corresponding to the touch lifting operation.
When the moving speed of the touch moving event is greater than the preset speed threshold value, the floating toolbar is directly moved to the preset target position, the moving distance of the touch moving event is smaller than that of the floating toolbar, and therefore moving convenience of the floating toolbar in the intelligent interaction equipment is improved.
The present application further provides a mobile device of a suspension toolbar, referring to fig. 4, the mobile device of the suspension toolbar is applied to an intelligent interaction device, and the mobile device of the suspension toolbar includes:
the monitoring module 10 is configured to monitor a touch movement event that a user moves a floating toolbar on a display interface of the intelligent interactive device;
a calculating module 20, configured to calculate a moving speed corresponding to the touch moving event;
a position determining module 30, configured to determine, if the value of the moving speed is greater than a preset speed threshold, a target position of the floating toolbar according to a moving track of the touch moving event, where the target position is located near a side edge of the display interface, corresponding to a moving direction of the moving track, in the display interface;
a moving module 40, configured to move the floating toolbar to the target position.
Optionally, the position determining module 30 is further configured to calculate a horizontal axis speed on a horizontal axis and a vertical axis speed on a vertical axis of the coordinate system corresponding to the display interface of the touch movement event if the value of the movement speed is greater than a preset speed threshold; if the value of the horizontal axis speed is smaller than the value of the vertical axis speed, determining the target position to be located near a longitudinal side edge of the display interface corresponding to the moving direction of the moving track in the display interface, and if the value of the horizontal axis speed is larger than or equal to the value of the vertical axis speed, determining the target position to be located near a transverse side edge of the display interface corresponding to the moving direction of the moving track in the display interface;
the position determining module 30 is further configured to calculate an included angle between the moving direction of the moving track and a horizontal axis and a vertical axis of the coordinate system corresponding to the display interface if the value of the moving speed is greater than a preset speed threshold; if the included angle between the moving direction of the moving track and the transverse axis is smaller than the included angle between the moving direction of the moving track and the longitudinal axis, the target position is determined to be located near the longitudinal side edge of the display interface corresponding to the moving direction of the moving track in the display interface, and if the included angle between the moving direction of the moving track and the transverse axis is larger than or equal to the included angle between the moving direction of the moving track and the transverse axis, the target position is determined to be located near the transverse side edge of the display interface corresponding to the moving direction of the moving track in the display interface.
Optionally, the position determining module 30 includes:
a first judgment unit configured to judge whether the longitudinal axis velocity is less than zero or greater than zero if the value of the lateral axis velocity is less than the value of the longitudinal axis velocity;
the first position determining unit is used for determining that the vertical coordinate of the target is zero if the speed of the vertical axis is less than zero; and if the longitudinal axis speed is greater than zero, determining the target longitudinal coordinate as the product of the height of the display interface and a preset first height coefficient, and determining the target position as the position near the longitudinal side of the display interface corresponding to the moving direction of the moving track according to the target longitudinal coordinate.
Optionally, the position determining module 30 further includes:
the first calculation unit is used for calculating the product of the horizontal axis speed and a preset horizontal axis offset coefficient to obtain a first product, and calculating the sum of the first product and the current horizontal coordinate of the current position coordinate of the suspension toolbar to obtain a horizontal coordinate to be determined;
the first position determining unit is further used for determining that the target abscissa is zero if the abscissa to be determined is smaller than zero; if the abscissa to be determined is larger than or equal to zero, calculating the product of the width of the display interface and a preset first width coefficient to obtain a second product; if the abscissa to be determined is larger than the second product, determining the target abscissa as the second product; and if the abscissa to be determined is smaller than or equal to the second product, determining the target abscissa as the sum of the second product and the current abscissa, and determining the target position as the position near the longitudinal side of the display interface corresponding to the moving direction of the moving track according to the target abscissa.
Optionally, the position determining module 30 further includes:
a second determination unit configured to determine whether the horizontal axis velocity is less than zero or greater than zero if the horizontal axis velocity is greater than or equal to the vertical axis velocity;
a second position determination unit, configured to determine that the target abscissa is zero if the abscissa speed is less than zero; and if the horizontal axis speed is greater than zero, determining the target horizontal axis as the product of the width of the display interface and a preset second width coefficient, and determining the target position as the position near the horizontal side edge of the display interface corresponding to the moving direction of the moving track according to the target horizontal axis.
Optionally, the position determining module 30 further includes:
the second calculation unit is used for calculating the product between the speed of the longitudinal axis and a preset longitudinal axis offset coefficient to obtain a third product, and calculating the sum of the third product and the current longitudinal coordinate of the current position coordinate to obtain a longitudinal coordinate to be determined;
the second position determination unit is further configured to determine that the target ordinate is zero if the ordinate to be determined is smaller than zero; if the vertical coordinate to be determined is larger than or equal to zero, calculating the product of the height of the display interface and a preset second height coefficient to obtain a fourth product; if the vertical coordinate to be determined is larger than the fourth product, determining the target vertical coordinate as the fourth product; and if the vertical coordinate to be determined is smaller than or equal to the fourth product, determining the target vertical coordinate as the sum of the fourth product and the current vertical coordinate, and determining the target position as the position near the lateral side of the display interface corresponding to the moving direction of the moving track according to the target vertical coordinate.
Optionally, the moving module 40 is further configured to move the floating toolbar to the target position in a curved mode;
the moving module 40 includes:
the third calculation unit is used for calculating the control point coordinate corresponding to the second-order Bezier curve mode according to the current position coordinate of the suspension toolbar and the target position coordinate corresponding to the target position;
the construction unit is used for constructing a second-order Bezier curve according to the current position coordinate, the target position coordinate and the control point coordinate based on a second-order Bezier formula;
a path determining unit, configured to determine the second-order bezier curve as a toolbar movement path for moving the floating toolbar;
and the moving unit is used for moving the suspension toolbar to the target position according to the toolbar moving path.
Optionally, the third computing unit comprises:
the calculating subunit is configured to calculate a first movement variation of the hovering toolbar in a horizontal axis direction and a second movement variation of the hovering toolbar in a vertical axis direction of the display interface coordinate system when the hovering toolbar moves from the current position coordinate to the target position coordinate;
a determining subunit, configured to determine whether a current ordinate of the current position coordinate and/or a target ordinate of the target position coordinate is smaller than a preset ordinate threshold if the first movement variation is larger than the second movement variation;
the ordinate determining subunit is configured to determine, if the current ordinate and/or the target ordinate is smaller than the ordinate threshold, an ordinate in which a coordinate value of the current ordinate and the target ordinate is larger as a first ordinate, and determine a sum of the first ordinate and the ordinate threshold as an ordinate of the control point coordinate; if the current ordinate and the target ordinate are greater than or equal to the longitudinal axis threshold, determining the ordinate with the smaller coordinate value in the current ordinate and the target ordinate as a second ordinate, and determining the difference value obtained by subtracting the longitudinal axis threshold from the second ordinate as the ordinate of the control point coordinate;
and the abscissa determining subunit is used for calculating the current abscissa of the current position coordinate and the average abscissa of the target position coordinate, and determining the average abscissa as the abscissa of the control point coordinate.
Optionally, the determining subunit is further configured to determine, if the first movement variation is smaller than or equal to the second movement variation, whether a current abscissa of the current position coordinate and/or a target abscissa of the target position coordinate is smaller than a preset abscissa threshold;
the abscissa determining subunit is further configured to determine, if the current abscissa and/or the target abscissa is smaller than the abscissa threshold, an abscissa having a larger coordinate value among the current abscissa and the target abscissa as a first abscissa, and determine a sum of the first abscissa and the abscissa threshold as an abscissa of the control point coordinate; if the current abscissa and the target abscissa are larger than or equal to the abscissa threshold, determining the abscissa with a smaller coordinate value of the current abscissa and the target abscissa as a second abscissa, and determining the difference value of the second abscissa minus the abscissa threshold as the abscissa of the control point coordinate;
the ordinate determining subunit is further configured to calculate a current ordinate of the current position coordinate and an average ordinate of a target ordinate of the target position coordinate, and determine the average ordinate as the ordinate of the control point coordinate.
Optionally, the computing module 20 further includes:
the fourth calculation unit is used for calculating the number of the first pixels passing by the touch movement event on the horizontal axis and the number of the second pixels passing by the touch movement event on the vertical axis in the display interface coordinate system;
a distance determining unit, configured to determine a first distance that the touch movement event moves on the horizontal axis according to the first number of pixels, and determine a second distance that the touch movement event moves on the vertical axis according to the second number of pixels;
the acquisition unit is used for acquiring the movement duration corresponding to the touch movement event;
the fourth calculating unit is further configured to obtain a movement duration corresponding to the touch movement event, divide the first distance by the movement duration to obtain a horizontal axis speed of the touch movement event on the horizontal axis, and divide the second distance by the movement duration to obtain a vertical axis speed of the touch movement event on the vertical axis;
and the speed determining unit is used for calculating a value of the moving speed corresponding to the touch moving event according to the value of the horizontal axis speed and the value of the vertical axis speed.
The specific implementation of the moving device of the floating toolbar of the present application is substantially the same as the embodiments of the moving method of the floating toolbar described above, and will not be described again here.
The application still provides a mobile device of suspension toolbar, the mobile device of suspension toolbar is applied to intelligent mutual equipment, the mobile device of suspension toolbar includes:
the monitoring module is used for monitoring a touch movement event of a user moving the floating toolbar on the display interface of the intelligent interactive equipment;
the calculating module is used for calculating the moving speed corresponding to the touch moving event;
the position determining module is used for determining a preset target position corresponding to the floating toolbar if the value of the moving speed is larger than a preset speed threshold, wherein the preset target position is a preset position which is located in the display interface and used for displaying the floating toolbar, and the preset target position is located in front of a moving track of the touch moving event;
and the moving module is used for moving the suspension toolbar to the preset target position.
The specific implementation of the moving device of the floating toolbar of the present application is substantially the same as the embodiments of the moving method of the floating toolbar described above, and will not be described again here.
The application also provides an intelligent interaction device, which comprises a memory, a processor and a floating toolbar moving program stored on the memory and running on the processor, wherein the floating toolbar moving program is used for realizing the floating toolbar moving method when being executed by the processor.
The specific implementation of the intelligent interactive device of the present application is substantially the same as the embodiments of the moving method of the floating toolbar, and will not be described repeatedly herein.
The present application also proposes a computer-readable storage medium having stored thereon a computer program which, when being executed by a processor, carries out the steps of the method for moving a floating toolbar as described above.
The specific implementation of the computer-readable storage medium of the present application is substantially the same as the embodiments of the moving method of the floating toolbar, and will not be described again here.
It will be appreciated by those skilled in the art that the alternatives described above may be freely combined, superimposed without conflict.
It will be understood that the embodiments described above are illustrative only and not restrictive, and that various obvious or equivalent modifications and substitutions for details described herein may be made by those skilled in the art without departing from the basic principles of the present application.

Claims (10)

1. A moving method of a floating toolbar is applied to intelligent interaction equipment, and comprises the following steps:
monitoring a touch movement event of a user moving a suspension toolbar on a display interface of intelligent interaction equipment, and calculating a movement speed corresponding to the touch movement event;
if the value of the moving speed is larger than a preset speed threshold value, determining a target position of the floating toolbar according to the moving track of the touch moving event, wherein the target position is located near the side edge of the display interface corresponding to the moving direction of the moving track in the display interface;
and moving the suspension toolbar to the target position.
2. The method for moving the hover toolbar according to claim 1, wherein if the moving speed is greater than a preset speed threshold, the step of determining the target position of the hover toolbar according to the moving track of the touch moving event comprises:
if the value of the moving speed is larger than a preset speed threshold value, calculating the speed of a horizontal axis and the speed of a vertical axis of the touch moving event on the horizontal axis and the vertical axis of a coordinate system corresponding to the display interface; if the value of the horizontal axis speed is smaller than the value of the vertical axis speed, determining the target position to be located near a longitudinal side edge of the display interface corresponding to the moving direction of the moving track in the display interface, and if the value of the horizontal axis speed is larger than or equal to the value of the vertical axis speed, determining the target position to be located near a transverse side edge of the display interface corresponding to the moving direction of the moving track in the display interface;
or,
if the value of the moving speed is larger than a preset speed threshold value, calculating an included angle between the moving direction of the moving track and a horizontal axis and a vertical axis of a coordinate system corresponding to the display interface; if the included angle between the moving direction of the moving track and the transverse axis is smaller than the included angle between the moving direction of the moving track and the longitudinal axis, the target position is determined to be located near the longitudinal side edge of the display interface corresponding to the moving direction of the moving track in the display interface, and if the included angle between the moving direction of the moving track and the transverse axis is larger than or equal to the included angle between the moving direction of the moving track and the transverse axis, the target position is determined to be located near the transverse side edge of the display interface corresponding to the moving direction of the moving track in the display interface.
3. The method for moving a floating toolbar according to claim 2, wherein the step of determining the vertical coordinate of the target corresponding to the target position if the horizontal axis velocity is smaller than the vertical axis velocity comprises:
if the value of the horizontal axis speed is smaller than the value of the vertical axis speed, judging whether the vertical axis speed is smaller than zero or larger than zero;
if the longitudinal axis speed is less than zero, determining that the longitudinal coordinate of the target is zero; if the speed of the longitudinal axis is greater than zero, determining the vertical coordinate of the target according to the height of the display interface and the height of the suspension toolbar;
the step of determining the target abscissa corresponding to the target position comprises the following steps:
calculating to obtain a horizontal coordinate to be determined according to the horizontal axis speed, the display interface size and the current horizontal coordinate of the suspension toolbar;
if the abscissa to be determined is smaller than zero, determining that the target abscissa is zero; if the abscissa to be determined is larger than or equal to zero, judging whether the abscissa to be determined is larger than an interface width threshold, if so, determining the target abscissa as the interface width threshold; and if the abscissa to be determined is smaller than or equal to the interface width threshold, determining that the target abscissa is the sum of the interface width threshold and the current abscissa, wherein the interface width threshold is determined according to the width of the display interface and the width of the hovering toolbar.
4. The method for moving a floating toolbar according to claim 2, wherein the step of determining the target abscissa corresponding to the target position if the value of the horizontal axis velocity is greater than or equal to the value of the vertical axis velocity comprises:
if the value of the horizontal axis speed is greater than or equal to the value of the vertical axis speed, judging whether the horizontal axis speed is less than zero or greater than zero;
if the horizontal axis speed is less than zero, determining that the target horizontal axis is zero; if the horizontal axis speed is larger than zero, determining the target horizontal coordinate according to the width of the display interface and the width of the suspension toolbar;
the step of determining the target ordinate corresponding to the target position comprises the following steps:
calculating to obtain a vertical coordinate to be determined according to the vertical axis speed, the display interface size and the current vertical coordinate of the suspension toolbar;
if the vertical coordinate to be determined is smaller than zero, determining that the target vertical coordinate is zero; if the vertical coordinate to be determined is larger than or equal to zero, judging whether the vertical coordinate to be determined is larger than an interface height threshold value, if so, determining the target vertical coordinate to be the interface height threshold value; and if the vertical coordinate to be determined is smaller than or equal to the interface height threshold, determining that the target vertical coordinate is the sum of the interface height threshold and the current vertical coordinate, wherein the interface height threshold is determined according to the height of the display interface and the height of the suspension toolbar.
5. The method for moving a floating toolbar according to claim 1, wherein the step of moving the floating toolbar to the target position is: moving the hover toolbar to the target location in a second order bezier curve mode.
6. The method for moving the hover toolbar according to any one of claims 1 to 5, wherein the step of calculating the moving speed corresponding to the touch movement event includes calculating a value of the moving speed, and wherein the step of calculating the value of the moving speed includes:
calculating the number of pixels passed by the touch movement event;
determining the moving distance of the touch moving event according to the number of the pixels;
and obtaining the moving duration corresponding to the touch moving event, and calculating to obtain the value of the moving speed corresponding to the touch moving event according to the moving distance and the moving duration.
7. A moving method of a floating toolbar is applied to intelligent interaction equipment, and comprises the following steps:
monitoring a touch movement event of a user moving a suspension toolbar on a display interface of intelligent interaction equipment, and calculating a movement speed corresponding to the touch movement event;
if the moving speed value is larger than a preset speed threshold value, determining a preset target position corresponding to the floating toolbar, wherein the preset target position is a preset position which is located in the display interface and used for displaying the floating toolbar, and the preset target position is located in front of a moving track of the touch moving event;
and moving the suspension toolbar to the preset target position.
8. The mobile device of the floating toolbar is applied to intelligent interaction equipment, and comprises:
the monitoring module is used for monitoring a touch movement event of a user moving the floating toolbar on the display interface of the intelligent interactive equipment;
the calculating module is used for calculating the moving speed corresponding to the touch moving event;
a position determining module, configured to determine a target position of the floating toolbar according to a movement track of the touch movement event if the value of the movement speed is greater than a preset speed threshold, where the target position is located near a side edge of the display interface, corresponding to a movement direction of the movement track, in the display interface;
and the moving module is used for moving the suspension toolbar to the target position.
9. An intelligent interaction device, comprising a memory, a processor and a floating toolbar moving program stored on the memory and running on the processor, wherein the floating toolbar moving program, when executed by the processor, implements the floating toolbar moving method according to any one of claims 1 to 6 or 7.
10. A computer-readable storage medium, having stored thereon a computer program which, when executed by a processor, implements the method of moving a hover toolbar as recited in any of claims 1-6 or 7.
CN202011577120.XA 2020-12-24 2020-12-24 Moving method and device of suspension toolbar, intelligent interaction equipment and storage medium Active CN112612399B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011577120.XA CN112612399B (en) 2020-12-24 2020-12-24 Moving method and device of suspension toolbar, intelligent interaction equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011577120.XA CN112612399B (en) 2020-12-24 2020-12-24 Moving method and device of suspension toolbar, intelligent interaction equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112612399A true CN112612399A (en) 2021-04-06
CN112612399B CN112612399B (en) 2022-11-11

Family

ID=75248206

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011577120.XA Active CN112612399B (en) 2020-12-24 2020-12-24 Moving method and device of suspension toolbar, intelligent interaction equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112612399B (en)

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090265657A1 (en) * 2008-04-22 2009-10-22 Htc Corporation Method and apparatus for operating graphic menu bar and recording medium using the same
CN103838510A (en) * 2014-02-27 2014-06-04 北京六间房科技有限公司 Interface control device
CN105138217A (en) * 2015-07-08 2015-12-09 广州优蜜移动科技股份有限公司 Suspended window operation method and system for intelligent terminal
US20160070466A1 (en) * 2014-09-04 2016-03-10 Apple Inc. User interfaces for improving single-handed operation of devices
CN106775352A (en) * 2016-12-15 2017-05-31 北京小米移动软件有限公司 The moving method of suspension key, device and equipment
CN107454259A (en) * 2017-07-31 2017-12-08 珠海市魅族科技有限公司 A kind of control adjusting method, device and computer installation, readable storage medium storing program for executing
CN108279820A (en) * 2017-12-15 2018-07-13 深圳市金立通信设备有限公司 Control method, terminal and the computer readable storage medium of suspension button
CN108762619A (en) * 2018-06-08 2018-11-06 Oppo广东移动通信有限公司 Buoy display methods, device, terminal and storage medium
CN110908578A (en) * 2018-09-18 2020-03-24 网易(杭州)网络有限公司 Virtual object moving method and device
CN111273838A (en) * 2018-12-19 2020-06-12 深圳市鸿合创新信息技术有限责任公司 Moving method of suspension toolbar in touch display device and touch display device
CN111338494A (en) * 2018-12-19 2020-06-26 华为技术有限公司 Touch display screen operation method and user equipment
CN111400177A (en) * 2020-03-12 2020-07-10 咪咕文化科技有限公司 Debugging method and device, electronic equipment and storage medium
CN111694482A (en) * 2017-05-16 2020-09-22 苹果公司 Device, method and graphical user interface for navigating between user interfaces
CN112099689A (en) * 2020-09-14 2020-12-18 Oppo广东移动通信有限公司 Interface display method and device, electronic equipment and computer readable storage medium

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090265657A1 (en) * 2008-04-22 2009-10-22 Htc Corporation Method and apparatus for operating graphic menu bar and recording medium using the same
CN103838510A (en) * 2014-02-27 2014-06-04 北京六间房科技有限公司 Interface control device
US20160070466A1 (en) * 2014-09-04 2016-03-10 Apple Inc. User interfaces for improving single-handed operation of devices
CN105138217A (en) * 2015-07-08 2015-12-09 广州优蜜移动科技股份有限公司 Suspended window operation method and system for intelligent terminal
CN106775352A (en) * 2016-12-15 2017-05-31 北京小米移动软件有限公司 The moving method of suspension key, device and equipment
CN111694482A (en) * 2017-05-16 2020-09-22 苹果公司 Device, method and graphical user interface for navigating between user interfaces
CN107454259A (en) * 2017-07-31 2017-12-08 珠海市魅族科技有限公司 A kind of control adjusting method, device and computer installation, readable storage medium storing program for executing
CN108279820A (en) * 2017-12-15 2018-07-13 深圳市金立通信设备有限公司 Control method, terminal and the computer readable storage medium of suspension button
CN108762619A (en) * 2018-06-08 2018-11-06 Oppo广东移动通信有限公司 Buoy display methods, device, terminal and storage medium
CN110908578A (en) * 2018-09-18 2020-03-24 网易(杭州)网络有限公司 Virtual object moving method and device
CN111273838A (en) * 2018-12-19 2020-06-12 深圳市鸿合创新信息技术有限责任公司 Moving method of suspension toolbar in touch display device and touch display device
CN111338494A (en) * 2018-12-19 2020-06-26 华为技术有限公司 Touch display screen operation method and user equipment
CN111400177A (en) * 2020-03-12 2020-07-10 咪咕文化科技有限公司 Debugging method and device, electronic equipment and storage medium
CN112099689A (en) * 2020-09-14 2020-12-18 Oppo广东移动通信有限公司 Interface display method and device, electronic equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN112612399B (en) 2022-11-11

Similar Documents

Publication Publication Date Title
US20160110052A1 (en) Apparatus and method of drawing and solving figure content
EP4116813A1 (en) Method for execution of hand gesture commands, apparatus, system, and storage medium
US9547379B2 (en) Method, air mouse, and set top box for controlling air mouse
KR101657168B1 (en) Display method and apparatus based on user's potion
CN104407732B (en) synchronous writing method and system
CN103488413B (en) Touch control device and show control method and the device at 3D interface on touch control device
CN111273838B (en) Moving method of suspended toolbar in touch display device and touch display device
US9685143B2 (en) Display control device, display control method, and computer-readable storage medium for changing a representation of content displayed on a display screen
MX2014009990A (en) Drive control apparatus, electronic device, and drive control method.
CN104866206B (en) The moving method and mobile terminal of a kind of image data
CN103097996A (en) Motion control touch screen method and apparatus
CN102375685A (en) Display control apparatus and method of controlling the same
CN103631419A (en) Cursor positioning method and system based on remote control touch pad
CN107204044A (en) A kind of picture display process and relevant device based on virtual reality
CN105512124B (en) The method and apparatus that text editor suspends are realized in webpage
US20210205698A1 (en) Program, electronic device, and method
CN103885685A (en) Method and device for processing pages
CN106843634A (en) Screen display method of adjustment and system
Cho et al. Dynamics of tilt-based browsing on mobile devices
CN112612399B (en) Moving method and device of suspension toolbar, intelligent interaction equipment and storage medium
CN104516654A (en) Operation processing method and device
US10073609B2 (en) Information-processing device, storage medium, information-processing method and information-processing system for controlling movement of a display area
CN102291491B (en) Form control and terminal equipment comprising same
CN104035544A (en) Method for controlling electronic device and electronic device
US20180004402A1 (en) Method for Scaling Down Effective Display Area of Screen, and Mobile Terminal

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