CN111552430A - Control method and device of sliding control, storage medium and electronic equipment - Google Patents

Control method and device of sliding control, storage medium and electronic equipment Download PDF

Info

Publication number
CN111552430A
CN111552430A CN202010483527.XA CN202010483527A CN111552430A CN 111552430 A CN111552430 A CN 111552430A CN 202010483527 A CN202010483527 A CN 202010483527A CN 111552430 A CN111552430 A CN 111552430A
Authority
CN
China
Prior art keywords
scale
sliding
indicated
slider
control
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
CN202010483527.XA
Other languages
Chinese (zh)
Other versions
CN111552430B (en
Inventor
庄宇轩
孙静
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN202010483527.XA priority Critical patent/CN111552430B/en
Publication of CN111552430A publication Critical patent/CN111552430A/en
Application granted granted Critical
Publication of CN111552430B publication Critical patent/CN111552430B/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/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
    • 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

Landscapes

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

Abstract

The disclosure provides a control method of a sliding control, a control device of the sliding control, a computer readable storage medium and electronic equipment, and relates to the technical field of human-computer interaction. The control method of the sliding control is applied to terminal equipment, the sliding control comprises a sliding block and a sliding track, the sliding block is used for indicating scales on the sliding track, and the scale range indicated by the sliding track is from a first scale to a second scale, and the method comprises the following steps: updating the first scale and/or the second scale according to the first sliding operation and the indicated scale indicated by the sliding block in response to the first sliding operation acting on the sliding block; after updating the first scale and/or the second scale, in response to a second sliding operation applied to the slider, the position of the slider on the sliding track is adjusted to update the indication scale indicated by the slider. The method and the device can improve the scale precision of the sliding control.

Description

Control method and device of sliding control, storage medium and electronic equipment
Technical Field
The present disclosure relates to the field of human-computer interaction technologies, and in particular, to a control method of a sliding control, a control device of the sliding control, a computer-readable storage medium, and an electronic device.
Background
Currently, in e-commerce transaction application software, various sliding controls are generally designed for selectable parameters, such as selling price, selling time and the like.
For example, on a graphical user interface of the transaction-like software, a user may control a slider in a slider control to effect selection of a sale price for an item. Existing sliding controls set fixed scale ranges and division values. For example, for the article selling price, the sliding control is provided with a scale range of 0-100 yuan and a division value of 5, and when the user desires to determine the article selling price of 55.6 yuan, the user can select the value 55 or 60 adjacent to 55.6 through the slider of the price sliding control, and cannot accurately reach the article selling price required by the user.
It is to be noted that the information disclosed in the above background section is only for enhancement of understanding of the background of the present disclosure, and thus may include information that does not constitute prior art known to those of ordinary skill in the art.
Disclosure of Invention
The present disclosure is directed to a method for controlling a sliding control, a device for controlling a sliding control, a computer-readable storage medium, and an electronic device, so as to overcome at least some of the problems of low scale precision of a sliding control due to limitations and disadvantages of the related art.
According to a first aspect of the present disclosure, a method for controlling a sliding control is provided, which is applied to a terminal device, the sliding control includes a slider and a sliding track, the slider is used for indicating a scale on the sliding track, and a scale range indicated by the sliding track is from a first scale to a second scale, and the method includes: updating the first scale and/or the second scale according to the first sliding operation and the indicated scale indicated by the sliding block in response to the first sliding operation acting on the sliding block; after updating the first scale and/or the second scale, in response to a second sliding operation applied to the slider, the position of the slider on the sliding track is adjusted to update the indication scale indicated by the slider.
According to a second aspect of the present disclosure, there is provided a control apparatus for a sliding control, which is applied to a terminal device, the sliding control includes a slider and a sliding track, the slider is used to indicate a scale on the sliding track, and a scale range indicated by the sliding track is from a first scale to a second scale, including: the scale range updating module is used for responding to the first sliding operation acted on the sliding block and updating the first scale and/or the second scale according to the first sliding operation and the indication scale indicated by the sliding block; and the sliding block adjusting module is used for responding to the second sliding operation acted on the sliding block after the first scale and/or the second scale are updated, and adjusting the position of the sliding block on the sliding track to update the indication scale indicated by the sliding block.
Optionally, the scale range update module may be configured to perform: and responding to the first sliding operation acting on the slider under the condition that the included angle between the sliding direction of the first sliding operation and the sliding track is larger than the included angle threshold value and/or the distance between the touch point of the first sliding operation and the sliding track is larger than the distance threshold value.
Optionally, the scale range updating module may include: a difference value adjusting unit for adjusting the difference value between the first scale and the second scale according to the sliding distance of the first sliding operation; and the scale updating unit is used for updating the first scale and/or the second scale based on the difference value between the first scale and the second scale and the indication scale indicated by the sliding block so that the indication scale is the N equal division point of the first scale and the second scale.
Optionally, the scale range updating module may further include: the coefficient determining unit is used for determining a scale adjusting coefficient based on the sliding distance of the first sliding operation, wherein the scale adjusting coefficient is in positive correlation with the sliding distance; the difference value calculating unit is used for calculating the first scale difference values of the first scale and the second scale and the indicating scale respectively; and the scale range updating unit is used for updating the first scale and/or the second scale according to the indication scale, the first scale difference value and the scale adjusting coefficient.
Alternatively, the scale range updating unit may be configured to perform: determining a second scale difference value according to the first scale difference value and the scale adjusting coefficient; and updating the first scale and/or the second scale of the sliding track according to the second scale difference value and the indication scale.
Alternatively, the scale range updating unit may be configured to perform, with the indication scale as a center point of the first scale and the second scale: determining the number of the scale grids of the sliding track; and updating the first scale and/or the second scale based on the scale grid number, the second scale difference value and the indication scale.
Optionally, the slider adjustment module may be configured to perform: and responding to the second sliding operation acting on the slider under the condition that the included angle between the sliding direction of the second sliding operation and the sliding track is smaller than or equal to the included angle threshold value, and/or the distance between the touch point of the second sliding operation and the sliding track is smaller than or equal to the distance threshold value.
Optionally, the control device of the sliding control further includes: the operation detection module is used for detecting whether the second sliding operation is finished or not; and the data determining module is used for determining the numerical value corresponding to the indication scale indicated by the updated slide block as the target input data if the second sliding operation is finished so as to inquire the associated information of the target input data.
According to a third aspect of the present disclosure, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the control method of the slider control as described above.
According to a fourth aspect of the present disclosure, there is provided an electronic device comprising: one or more processors; a storage device for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement the control method of the slider control as described above.
Exemplary embodiments of the present disclosure have the following advantageous effects:
in the technical solutions provided by some embodiments of the present disclosure, the sliding control includes a slider and a sliding track, the slider is used to indicate a scale on the sliding track, and the scale indicated by the sliding track ranges from a first scale to a second scale; then, after updating the first scale and/or the second scale, in response to a second sliding operation applied to the slider, the position of the slider on the slide rail is adjusted to update the indication scale indicated by the slider. On the one hand, the scale range of the sliding track is updated according to the first sliding operation and the indication scale, so that the scale precision of the sliding track is higher, and a user can conveniently select the scale in the updated scale range. On the other hand, after the scale range of the sliding track is updated, the second sliding operation acting on the sliding block is responded, the indicating scale indicated by the sliding block can be updated by adjusting the position of the sliding block on the sliding track, the combination of the sliding control and the input frame is avoided from being used for determining the indicating scale, the operation step of scale selection is simpler and more convenient, the scale selection efficiency is improved, and the operation time is saved. Meanwhile, only the sliding control occupies the area of the graphical user interface, so that the space of the graphical user interface is saved, and the utilization rate of the graphical user interface is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure. It is to be understood that the drawings in the following description are merely exemplary of the disclosure, and that other drawings may be derived from those drawings by one of ordinary skill in the art without the exercise of inventive faculty. In the drawings:
FIG. 1 schematically illustrates a flow chart of a method of controlling a slider control according to an exemplary embodiment of the present disclosure;
FIG. 2 schematically illustrates a schematic diagram of a slider control of an exemplary embodiment of the present disclosure;
FIG. 3 schematically illustrates a state diagram after adjustment of a slider control according to an exemplary embodiment of the present disclosure;
FIG. 4 schematically illustrates a state diagram after adjustment of a slider control according to another exemplary embodiment of the present disclosure;
FIG. 5 schematically illustrates a block diagram of a control apparatus of a slider control according to an exemplary embodiment of the present disclosure;
FIG. 6 schematically illustrates a block diagram of a scale range update module according to an exemplary embodiment of the present disclosure;
FIG. 7 schematically illustrates a block diagram of a scale range update module according to another exemplary embodiment of the present disclosure;
fig. 8 schematically shows a block diagram of an electronic device in an exemplary embodiment according to the present disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the disclosure. One skilled in the relevant art will recognize, however, that the subject matter of the present disclosure can be practiced without one or more of the specific details, or with other methods, components, devices, steps, and the like. In other instances, well-known technical solutions have not been shown or described in detail to avoid obscuring aspects of the present disclosure.
Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus their repetitive description will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
In the present disclosure, the terms "comprises" and "comprising" are used in an open-ended fashion, and mean that there may be additional elements/components/etc. in addition to the listed elements/components/etc. In addition, the terms "first" and "second" used in the present disclosure are for the purpose of distinction only and should not be construed as a limitation of the present disclosure.
The flow charts shown in the drawings are merely illustrative and do not necessarily include all of the steps. For example, some steps may be decomposed, and some steps may be combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.
Currently, in e-commerce transaction type application software, a large number of sliding controls exist for selecting parameters. For example, the user determines the time of sale by sliding a control.
The existing sliding control is provided with a scale range of 0 to 24 points, a division value of 10 minutes and a target input box which are related to the selling time. The user can select the desired time scale for sale by sliding the slider of the control. However, in the case that the expected selling time that the user needs to determine is 13 o ' clock and 5 o ' clock, the user can determine only two selling time scales close to the expected selling time by 13 o ' clock or 13 o ' clock and 10 o ' clock by controlling the sliding control, and cannot determine the selling time scale corresponding to the expected selling time. In addition, after the user inputs the needed selling time by using the target input box, the expected selling time required by the user can be met, but the input and the sliding control occupy a larger area of the graphical user interface.
In order to solve the problem, the present disclosure provides a control method of a sliding control.
It should be noted that, in the exemplary embodiment of the present disclosure, the control method of the slide control described below may be implemented by a terminal device (e.g., a mobile phone, a tablet, a personal computer, etc.), that is, the steps of the control method of the slide control may be executed by the terminal device, in which case, the control device of the slide control may be configured in the terminal device.
Hereinafter, the steps of the control method of the slider control in the present exemplary embodiment will be described in more detail with reference to the drawings and the examples.
Fig. 1 schematically illustrates a flowchart of a control method of a slide control according to an exemplary embodiment of the present disclosure. In the following description, a terminal device is exemplified as an execution subject. Referring to fig. 1, the method for controlling a slider control may specifically include the following steps:
and S102, responding to the first sliding operation acted on the sliding block, and updating the first scale and/or the second scale according to the first sliding operation and the indication scale indicated by the sliding block.
In an exemplary embodiment of the present disclosure, the sliding control may include a sliding track and a sliding block, the sliding block is configured to indicate a scale on the sliding track, and the scale indicated by the sliding track ranges from a first scale to a second scale. Wherein, the slider can slide towards the two ends of the sliding control based on the sliding operation of the user.
As shown in fig. 2, the slide control includes a slider 201 and a slide track 203, the scale range indicated by the slide track may be represented as 50-60, the first scale may be represented as 50 or 60, and the second scale may be represented as 50 or 60.
The sliding operation may refer to an operation of a continuous movement of a touch point of an operation medium (e.g., a finger of a user) on the graphical user interface, and an initial touch point of the operation medium is located at the slider, i.e., a continuous operation of the user's finger on the sliding track for sliding the slider from a position in the graphical user interface where the slider is located to another position on the graphical user interface. The sliding operation may also be an operation in which the user presses the drag slider to slide. It should be noted that, in the process of performing the sliding operation, the user may stop the sliding operation and continue to perform the sliding operation at intervals when the finger leaves the screen.
The touch point may refer to a position where a finger of the user makes contact with the graphical user interface, and may be represented by coordinates. The sliding operation can make the sliding block move but the scale range of the sliding track is not changed, and also can make the scale range of the sliding track change but the scale indicated by the sliding block does not change. That is, the sliding operation may cause the first scale and/or the second scale to be updated, but the scale indicated by the slider is not changed.
The first sliding operation may refer to a continuous operation of a user for sliding the slider from the first touch point to the second touch point, and in a case where a preset condition is satisfied, the scale range of the sliding track may be changed but the scale indicated by the slider is not changed. The direction of sliding from the first touch point to the second touch point may represent a sliding direction of the first sliding operation.
Specifically, the terminal device may respond to the first sliding operation acting on the slider when an included angle between the sliding direction of the first sliding operation and the sliding track is greater than an included angle threshold value, and/or a distance from the touch point of the first sliding operation to the sliding track is greater than a distance threshold value.
The distance from the touch point of the first sliding operation to the sliding track may refer to a distance from two touch points included in the first sliding operation to the sliding track, respectively. In an exemplary embodiment of the disclosure, in a case that distances from two touch points included in the first sliding operation to the sliding track are respectively greater than a distance threshold, and/or an included angle between a sliding direction of the first sliding operation and the sliding track is greater than an included angle threshold, the first sliding operation acting on the slider is responded.
The distance threshold and the included angle threshold are set according to the requirements of actual conditions. The distance threshold may be, for example, 15 pixels and the included angle threshold may be, for example, 30 degrees.
The indication scale indicated by the slider can be set to be a scale value by the terminal equipment, and the user can also control the slider to select the scale value. The present disclosure is not limited thereto. It should be noted that the indication scale indicated by the slider may be used as an initial scale for updating the indication scale.
The first scale and/or the second scale are/is updated according to the first sliding operation and the indication scale indicated by the sliding block, so that the scale range of the sliding track is more accurate, the scale precision is higher, and a user can conveniently select the scale within the updated scale range of the sliding track.
According to an exemplary embodiment of the present disclosure, the terminal device may adjust a difference value of the first scale and the second scale according to a sliding distance of the first sliding operation; and updating the first scale and/or the second scale based on the difference value between the first scale and the second scale and the indicated scale indicated by the slide block, so that the indicated scale is the N equal division points of the first scale and the second scale.
The sliding distance of the first sliding operation may refer to a distance between the first touch point and the second touch point in the first sliding operation. The first scale may increase with increasing sliding distance and the second scale may decrease with increasing sliding distance.
For example, the initial scale range of the sliding track is 0-100, and the indicated scale indicated by the current slider is 40. And the terminal equipment determines that the sliding distance is 10 pixels according to the first sliding operation. Note that the numerical value of the scale adjustment coefficient is 3 times the sliding distance.
The terminal equipment firstly determines the numerical value of the scale adjustment coefficient to be 30 according to the sliding distance; then, determining that the difference value between the first scale and the second scale is 30 according to the scale adjustment coefficient; and then, if the terminal device takes the indication scale indicated by the current slider as a 2-equal division point of the updated scale range, calculating to obtain an updated first scale of 25 and an updated second scale of 55 according to the difference between the first scale and the second scale and the indication scale.
In addition, if the terminal device uses the indication scale indicated by the current slider as the 3-equal division point of the updated scale range, the updated first scale is 30 and the second scale is 60 according to the difference between the first scale and the second scale and the indication scale.
In an exemplary embodiment of the present disclosure, the indication scale indicated by the slider may be an N-th division point of the first scale and the second scale. The scale value of the first scale increment is positively correlated with the sliding distance. The scale value of the second scale decrease is positively correlated with the sliding distance.
According to an exemplary embodiment of the present disclosure, the terminal device may also determine a scale adjustment coefficient based on the sliding distance of the first sliding operation; then, respectively calculating a first scale difference value between the first scale and the indication scale and a first scale difference value between the second scale and the indication scale; subsequently, the first scale and/or the second scale is updated according to the indicated scale, the first scale difference value and the scale adjustment coefficient.
Wherein, the scale adjustment coefficient and the sliding distance are in positive correlation. The scale adjustment factor may refer to a multiple of an increase or decrease in the first scale and/or the second scale. The terminal equipment can set the sliding distance and increase the unit distance, the first scale and/or the second scale increase or decrease the preset scale value, and the scale adjusting coefficient can be determined by the product of the sliding distance and the preset scale value. The first scale difference may comprise a difference between the first scale and the indicating scale, and a difference between the second scale and the indicating scale.
For example, the initial scale range of the slide control is 0-100, the indication scale indicated by the current slider is 90, the first scale is 0, and the second scale is 100. And the terminal equipment determines that the sliding distance is 10 pixels according to the first sliding operation. Note that the numerical value of the scale adjustment coefficient is 3% times the sliding distance.
The terminal device firstly calculates the scale adjustment coefficient to be 30% according to the sliding distance, and then respectively calculates the first scale difference values of the first scale 0 and the second scale 100 and the indication scale 40 as: 40 and-60; then, the terminal device obtains the updated first scale as 12 and the updated second scale as 82 according to the scale adjustment coefficient of 30%, the first scale difference value 40 and-60, and the indication scale 40.
It should be noted that the first scale difference Δ x1Is calculated as shown in equation (1):
Δx1=x-x0(1)
wherein x represents the indication scale indicated by the current slide block, and x0Representing a first scale or a second scale in the initial scale range of the slider control. When calculating the difference between the first scale and the indication scale, x0A first scale, which may be represented as an initial scale range; when calculating the difference between the second scale and the indication scale, x0A second scale, which may be expressed as a range of initial scales. First scale difference Δ x1May contain an initial scaleAnd the first scale and the second scale of the range are respectively the difference value of the indicating scales indicated by the current slide block.
The calculation of the updated first scale or second scale is shown in equation (2):
x2=x0+Δx1·k (2)
where k represents a scale adjustment coefficient. x is the number of2A numerical value representing the updated first scale or second scale.
After calculating the first scale difference between the first scale and the indication scale and the second scale and the indication scale respectively, the terminal device may determine the second scale difference based on the first scale difference and the scale adjustment coefficient; and then updating the first scale and/or the second scale of the sliding track according to the second scale difference value and the indication scale.
The second scale difference value may include a scale difference value updated by the first scale and a scale difference value updated by the second scale.
It should be noted that, the number of the scale grids of the sliding track is not changed, and the terminal device updates the first scale and/or the second scale based on the sliding distance and the indication scale of the first sliding operation, so that the precision of the scale range of the sliding track is improved, that is, the division value of the sliding track is reduced. In the updated scale range, the number of the scale grids is unchanged, and the terminal equipment can adjust the numerical value corresponding to each scale of the sliding track according to the updated first scale, the updated second scale and the updated division value.
For example, the terminal device calculates the scale adjustment coefficient to be 30%, and the first scale difference values of the first scale 0 and the second scale 100 and the indication scale 40 are respectively: 40 and-60, the terminal equipment can calculate that the difference values of the second scales corresponding to the first scale and the second scale are respectively 12 and-18; and then, according to the second scale difference value and the indication scale, the first scale of the updated sliding track is 12, and the second scale of the updated sliding track is 82.
It should be noted that the second scale difference Δ x2Is calculated as shown in equation (3):
Δx2=Δx1·k (3)
wherein the second scale differenceValue Δ x2The first scale and the second scale of the updated scale range can be contained in the difference value of the indication scale indicated by the current slide block. That is, at Δ x1The difference between the first scale of the initial scale range and the indication scale is Δ x2And the difference value of the first scale which can represent the scale range after updating and the second scale of the indicating scale indicated by the current slide block. At Δ x1The difference between the second scale of the initial scale range and the indication scale is Δ x2And the second scale which can represent the scale range after updating and the second scale difference value of the indication scale indicated by the current slide block.
According to the exemplary embodiment of the disclosure, the terminal device can determine the scale number of the sliding track by taking the indication scale as the central points of the first scale and the second scale; and updating the first scale and/or the second scale based on the scale grid number, the second scale difference value and the indication scale. The scale number of the sliding track may be a fixed number, and each scale number may represent a division value of the sliding track.
The terminal device may use the indication scale as a central point, that is, divide the scale grid number equally, then determine an updated division value of the sliding track according to the calculated first scale and second scale, and then determine the updated first scale and/or second scale based on the division value and the indication scale. The indication scale is used as the central point of the first scale and the second scale, the scale range of the updated sliding track is ensured to surround the indication scale, the scale range precision is prevented from being improved, the scale interval containing the indication scale is omitted, and the error rate in the scale updating process is reduced.
And S104, after the first scale and/or the second scale are updated, responding to the second sliding operation acted on the sliding block, and adjusting the position of the sliding block on the sliding track to update the indication scale indicated by the sliding block.
In an exemplary embodiment of the present disclosure, the second sliding operation control slider slides from the indication scale of the current slider to the updated indication scale without changing the scale range of the sliding track.
Specifically, under the condition that the included angle between the sliding direction of the second sliding operation and the sliding track is smaller than or equal to the included angle threshold value, and/or the distance from the touch point of the second sliding operation to the sliding track is smaller than or equal to the distance threshold value, the second sliding operation acting on the slider is responded.
The sliding direction of the second sliding operation may refer to a connection direction of the touch point of the user on the graphical user interface and the position coordinate of the slider.
Under the condition that the included angle between the sliding direction of the second sliding operation and the sliding track is smaller than or equal to the included angle threshold value, and/or the distance between the touch point of the second sliding operation and the sliding track is smaller than or equal to the distance threshold value, the second sliding operation may include adjusting the position of the slider on the sliding track for multiple times until the second sliding operation is finished, and determining the updated indication scale.
For example, the initial scale range of the sliding track is 0 to 100, and in a case that an included angle between the sliding direction of the first sliding operation (the pressing and dragging operation) and the sliding track is greater than an included angle threshold, and/or a distance from a touch point of the first sliding operation to the sliding track is greater than a distance threshold, the terminal device first responds to the first sliding operation of the user for the slider, and obtains an updated scale range of the sliding track as 50 to 60, as shown in fig. 3. The terminal device may then adjust the position of the slider on the slide rail toward both ends of the updated slide rail in response to the second sliding operation (pressing drag operation) applied to the slider to obtain the updated indication scale. The dotted line in fig. 3 indicates the direction in which the user's finger controls the slider, showing the first sliding operation and the updated sliding track. The process for the second sliding operation is not shown.
According to the method, after the first scale and/or the second scale are updated, the position of the sliding block on the sliding track is adjusted to update the indication scale. The method and the device can avoid the use of a sliding control and an input box for determining the scale, so that the operation step of scale selection is simpler and more convenient, and meanwhile, the utilization rate of the graphical user interface is improved.
According to the exemplary embodiment of the disclosure, the terminal device may detect whether the second sliding operation is ended, and if the second sliding operation is ended, use a numerical value corresponding to the indication scale indicated by the updated slider as the target input data, so as to query the associated information of the target input data.
And the terminal equipment updates an indication scale corresponding to the numerical value of a target object based on the sliding control, wherein the updated numerical value of the target object can represent target input data. For example, in e-commerce transaction software, the terminal device updates the indication scale for the article selling price, and then determines that the target input data is a numerical value corresponding to the updated indication scale based on the updated indication scale, that is, the updated article selling price; subsequently, the terminal device queries information associated with the item selling price based on the updated item selling price.
After the target input data is determined, the terminal device may retrieve associated information of the target input data based on the target input data. According to the method and the device, the updated indication scale is used as the target input data, the associated information of the target input data is inquired, and the utilization rate of the updated indication scale is improved.
It should be noted that, after the terminal device adjusts the position of the slider on the sliding track to update the indication scale, the updated indication scale may be used as the current scale, and the updated sliding range of the sliding track is further accurate under the condition that the corresponding first sliding operation condition is satisfied, that is, the updated first scale and/or second scale are further accurate, so that the accuracy of the sliding track is more accurate.
The terminal device can also return to the initial scale range of the sliding track after updating the first scale and/or the second scale so as to perform control of the sliding control again.
Before the scale range of the sliding track is not updated, under the condition that the included angle between the sliding direction of the first sliding operation and the sliding track is smaller than or equal to the included angle threshold value and/or the distance between the touch point of the first sliding operation and the sliding track is smaller than or equal to the distance threshold value, the terminal device can respond to the first sliding operation, adjust the position of the slider on the sliding track to update the indication scale indicated by the slider, and does not update the scale range of the sliding track, that is, the terminal device can update the scale indicated by the slider and keep the scale range unchanged.
As shown in fig. 4, the initial scale range of the sliding track is 0-100, wherein the first scale is 0 and the second scale is 100. And under the condition that the included angle between the sliding direction of the first sliding operation and the sliding track is smaller than or equal to the included angle threshold value, the terminal equipment responds to the pressing and dragging operation acting on the sliding block, and the position of the sliding block on the sliding track is adjusted so as to update the scale indicated by the sliding block. In fig. 4, the dashed line indicates the direction in which the user's finger controls the slider.
It should be noted that although the various steps of the methods of the present disclosure are depicted in the drawings in a particular order, this does not require or imply that these steps must be performed in this particular order, or that all of the depicted steps must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions, etc.
Further, in an exemplary embodiment of the present disclosure, a control apparatus of a slide control is also provided.
Fig. 5 schematically illustrates a block diagram of a control apparatus of a slide control according to an exemplary embodiment of the present disclosure. Referring to fig. 5, a control apparatus 500 of a slide control according to an exemplary embodiment of the present disclosure may include: a scale range update module 502 and a slider adjustment module 504.
The scale range updating module 502 is configured to update the first scale and/or the second scale according to the first sliding operation and the indication scale indicated by the slider in response to the first sliding operation acting on the slider; and a slider adjusting module 504, configured to, after updating the first scale and/or the second scale, adjust a position of the slider on the sliding track to update the indication scale indicated by the slider in response to a second sliding operation applied to the slider.
According to another embodiment of the disclosure, the scale range update module 502 may be configured to perform: and responding to the first sliding operation acting on the slider under the condition that the included angle between the sliding direction of the first sliding operation and the sliding track is larger than the included angle threshold value and/or the distance between the touch point of the first sliding operation and the sliding track is larger than the distance threshold value.
According to another embodiment of the present disclosure, referring to fig. 6, the scale range update module 502 may further include: a difference adjustment unit 601 and a scale update unit 603.
The difference adjusting unit 601 is configured to adjust a difference between the first scale and the second scale according to the sliding distance of the first sliding operation; and a scale updating unit 603 configured to update the first scale and/or the second scale based on a difference between the first scale and the second scale and the indication scale indicated by the slider, so that the indication scale is an N-th division point of the first scale and the second scale.
According to another embodiment of the present disclosure, referring to fig. 7, the scale range updating module 502 may further include: a coefficient determination unit 702, a difference calculation unit 704, and a scale range update unit 706.
The coefficient determining unit 702 is configured to determine a scale adjustment coefficient based on the sliding distance of the first sliding operation, where the scale adjustment coefficient has a positive correlation with the sliding distance; a difference calculation unit 704 for calculating first scale differences between the first scale and the second scale and the indication scale, respectively; and a scale range updating unit 706 for updating the first scale and/or the second scale according to the indication scale, the first scale difference value and the scale adjustment coefficient.
According to another embodiment of the present disclosure, the scale range updating unit 706 may be configured to perform: determining a second scale difference value according to the first scale difference value and the scale adjusting coefficient; and updating the first scale and/or the second scale of the sliding track according to the second scale difference value and the indication scale.
According to another embodiment of the present disclosure, taking the indication scale as the center point of the first scale and the second scale, the scale range updating unit 706 may be configured to perform: determining the number of the scale grids of the sliding track; updating the first scale and/or the second scale based on the number of scales, the second scale difference value and the indication scale
According to another embodiment of the disclosure, the slider adjustment module 504 may be configured to perform: and responding to the second sliding operation acting on the slider under the condition that the included angle between the sliding direction of the second sliding operation and the sliding track is smaller than or equal to the included angle threshold value, and/or the distance between the touch point of the second sliding operation and the sliding track is smaller than or equal to the distance threshold value.
According to another embodiment of the present disclosure, the control apparatus 500 of the sliding control may further include: an operation detection module may be configured to perform: detecting whether the second sliding operation is finished; a data determination module that may be configured to perform: and if the second sliding operation is finished, determining the numerical value corresponding to the indication scale indicated by the updated sliding block as the target input data so as to inquire the associated information of the target input data.
The details of each module/unit in the above-mentioned apparatus have been described in detail in the embodiments of the method section, and thus are not described again.
In an exemplary embodiment of the present disclosure, there is also provided a computer-readable storage medium having stored thereon a program product capable of implementing the above-described method of the present specification. In some possible embodiments, aspects of the invention may also be implemented in the form of a program product comprising program code means for causing a terminal device to carry out the steps according to various exemplary embodiments of the invention described in the above-mentioned "exemplary methods" section of the present description, when the program product is run on the terminal device.
In an exemplary embodiment of the present disclosure, an electronic device capable of implementing the above method is also provided.
As will be appreciated by one skilled in the art, aspects of the present invention may be embodied as a system, method or program product. Thus, various aspects of the invention may be embodied in the form of: an entirely hardware embodiment, an entirely software embodiment (including firmware, microcode, etc.) or an embodiment combining hardware and software aspects that may all generally be referred to herein as a "circuit," module "or" system.
An electronic device 800 according to this embodiment of the invention is described below with reference to fig. 8. The electronic device 800 shown in fig. 8 is only an example and should not bring any limitations to the function and scope of use of the embodiments of the present invention.
As shown in fig. 8, electronic device 800 is in the form of a general purpose computing device. The components of the electronic device 800 may include, but are not limited to: the at least one processing unit 810, the at least one memory unit 820, a bus 830 connecting different system components (including the memory unit 820 and the processing unit 810), and a display unit 840.
Wherein the storage unit stores program code that is executable by the processing unit 810 to cause the processing unit 810 to perform steps according to various exemplary embodiments of the present invention as described in the above section "exemplary methods" of the present specification. For example, the processing unit 810 may perform steps S102 to S104 as shown in fig. 1.
The storage unit 820 may include readable media in the form of volatile memory units such as a random access memory unit (RAM)8201 and/or a cache memory unit 8202, and may further include a read only memory unit (ROM) 8203.
The storage unit 820 may also include a program/utility 8204 having a set (at least one) of program modules 8205, such program modules 8205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
Bus 830 may be any of several types of bus structures including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
The electronic device 800 may also communicate with one or more external devices 900 (e.g., keyboard, pointing device, bluetooth device, etc.), with one or more devices that enable a user to communicate with the electronic device 800, and/or with any devices (e.g., router, modem, etc.) that enable the electronic device 800 to communicate with one or more other computing devices. Such communication may occur via input/output (I/O) interfaces 850. Also, the electronic device 800 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the internet) via the network adapter 860. As shown, the network adapter 860 communicates with the other modules of the electronic device 800 via the bus 830. It should be appreciated that although not shown, other hardware and/or software modules may be used in conjunction with the electronic device 800, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.
Furthermore, the above-described figures are merely schematic illustrations of processes involved in methods according to exemplary embodiments of the invention, and are not intended to be limiting. It will be readily understood that the processes shown in the above figures are not intended to indicate or limit the chronological order of the processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, e.g., in multiple modules.
It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is to be limited only by the terms of the appended claims.

Claims (11)

1. A control method of a sliding control is applied to a terminal device, the sliding control comprises a slider and a sliding track, the slider is used for indicating scales on the sliding track, and the scale range indicated by the sliding track is from a first scale to a second scale, and the control method of the sliding control comprises the following steps:
in response to a first sliding operation acting on the sliding block, updating the first scale and/or the second scale according to the first sliding operation and the indicated scale indicated by the sliding block;
after updating the first scale and/or the second scale, in response to a second sliding operation acting on the slider, adjusting the position of the slider on the sliding track to update the indication scale indicated by the slider.
2. The method of controlling a slide control according to claim 1, wherein responding to a first slide operation acting on the slider comprises:
an angle between the sliding direction of the first sliding operation and the sliding track is greater than an angle threshold, and/or,
and responding to the first sliding operation acting on the slider under the condition that the distance from the touch point of the first sliding operation to the sliding track is greater than a distance threshold value.
3. The method for controlling a slide control according to claim 1 or 2, wherein updating the first scale and/or the second scale according to the first slide operation and the indicated scale indicated by the slider includes:
adjusting the difference value of the first scale and the second scale according to the sliding distance of the first sliding operation;
updating the first scale and/or the second scale based on the difference value of the first scale and the second scale and the indicated scale indicated by the slide block, so that the indicated scale is the N equal division point of the first scale and the second scale.
4. The method for controlling a slide control according to claim 1 or 2, wherein updating the first scale and/or the second scale according to the first slide operation and the indicated scale indicated by the slider includes:
determining a scale adjustment coefficient based on the sliding distance of the first sliding operation, wherein the scale adjustment coefficient is in positive correlation with the sliding distance;
respectively calculating first scale difference values of the first scale and the second scale and the indicating scale;
and updating the first scale and/or the second scale according to the indication scale, the first scale difference value and the scale adjustment coefficient.
5. The method of claim 4, wherein updating the first scale and/or the second scale according to the indicated scale, the first scale difference value, and the scale adjustment factor comprises:
determining a second scale difference value according to the first scale difference value and the scale adjusting coefficient;
and updating the first scale and/or the second scale of the sliding track according to the second scale difference value and the indication scale.
6. The method of claim 5, wherein the indicating scale is taken as a center point of the first scale and the second scale, and the updating the first scale and/or the second scale of the sliding track according to the second scale difference value and the indicating scale comprises:
determining the number of the scales of the sliding track;
updating the first scale and/or the second scale based on the scale grid number, the second scale difference value, and the indicated scale.
7. The method for controlling a slide control according to claim 1 or 2, wherein responding to the second slide operation acting on the slider includes:
an angle between the sliding direction of the second sliding operation and the sliding track is less than or equal to the angle threshold value, and/or,
and responding to a second sliding operation acting on the slider under the condition that the distance between the touch point of the second sliding operation and the sliding track is less than or equal to the distance threshold.
8. The method for controlling a slide control according to claim 1 or 2, further comprising:
detecting whether the second sliding operation is finished;
and if the second sliding operation is finished, taking the numerical value corresponding to the indication scale indicated by the updated sliding block as target input data so as to inquire the associated information of the target input data.
9. A control device of a sliding control is applied to a terminal device, the sliding control comprises a slider and a sliding track, the slider is used for indicating scales on the sliding track, and the scale range indicated by the sliding track is from a first scale to a second scale, and the control method of the sliding control comprises the following steps:
the scale range updating module is used for responding to a first sliding operation acting on the sliding block and updating the first scale and/or the second scale according to the first sliding operation and the indicated scale indicated by the sliding block;
and the sliding block adjusting module is used for responding to a second sliding operation acting on the sliding block after the first scale and/or the second scale are updated, and adjusting the position of the sliding block on the sliding track to update the indicated scale of the sliding block.
10. A computer-readable storage medium on which a computer program is stored, the program, when executed by a processor, implementing a control method of a slide control according to any one of claims 1 to 8.
11. An electronic device, comprising:
one or more processors;
storage means for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement the control method of the slide control according to any one of claims 1 to 8.
CN202010483527.XA 2020-06-01 2020-06-01 Control method and device of sliding control, storage medium and electronic equipment Active CN111552430B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010483527.XA CN111552430B (en) 2020-06-01 2020-06-01 Control method and device of sliding control, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010483527.XA CN111552430B (en) 2020-06-01 2020-06-01 Control method and device of sliding control, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN111552430A true CN111552430A (en) 2020-08-18
CN111552430B CN111552430B (en) 2022-05-31

Family

ID=72008788

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010483527.XA Active CN111552430B (en) 2020-06-01 2020-06-01 Control method and device of sliding control, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN111552430B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112107258A (en) * 2020-08-27 2020-12-22 江苏美的清洁电器股份有限公司 Floor sweeping robot water yield control method and device and floor sweeping robot
CN113946264A (en) * 2021-10-25 2022-01-18 网易(杭州)网络有限公司 Slide bar processing method and device, storage medium and electronic equipment
CN113961128A (en) * 2021-10-25 2022-01-21 网易(杭州)网络有限公司 Movement control method and device for slide bar with scales and electronic equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102346662A (en) * 2010-07-30 2012-02-08 比亚迪股份有限公司 Mobile terminal (MT) and method for realizing scrolling of user interface thereof
CN103513913A (en) * 2012-11-27 2014-01-15 Tcl集团股份有限公司 Touch screen equipment and control method of media playing progress thereof
CN104020944A (en) * 2014-05-27 2014-09-03 广州视源电子科技股份有限公司 Data input method based on sliding block
CN104636025A (en) * 2013-11-13 2015-05-20 上海联影医疗科技有限公司 Parameter inputting method and system
CN107132972A (en) * 2017-04-07 2017-09-05 广东欧珀移动通信有限公司 Adjusting method, device and the mobile terminal of progress value
CN107748641A (en) * 2017-11-01 2018-03-02 网易(杭州)网络有限公司 Numerical value adjustment control method, device, electronic equipment and storage medium
US20190258626A1 (en) * 2015-08-24 2019-08-22 Salesforce.Com, Inc. Generic scheduling

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102346662A (en) * 2010-07-30 2012-02-08 比亚迪股份有限公司 Mobile terminal (MT) and method for realizing scrolling of user interface thereof
CN103513913A (en) * 2012-11-27 2014-01-15 Tcl集团股份有限公司 Touch screen equipment and control method of media playing progress thereof
CN104636025A (en) * 2013-11-13 2015-05-20 上海联影医疗科技有限公司 Parameter inputting method and system
CN104020944A (en) * 2014-05-27 2014-09-03 广州视源电子科技股份有限公司 Data input method based on sliding block
US20190258626A1 (en) * 2015-08-24 2019-08-22 Salesforce.Com, Inc. Generic scheduling
CN107132972A (en) * 2017-04-07 2017-09-05 广东欧珀移动通信有限公司 Adjusting method, device and the mobile terminal of progress value
CN107748641A (en) * 2017-11-01 2018-03-02 网易(杭州)网络有限公司 Numerical value adjustment control method, device, electronic equipment and storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112107258A (en) * 2020-08-27 2020-12-22 江苏美的清洁电器股份有限公司 Floor sweeping robot water yield control method and device and floor sweeping robot
CN113946264A (en) * 2021-10-25 2022-01-18 网易(杭州)网络有限公司 Slide bar processing method and device, storage medium and electronic equipment
CN113961128A (en) * 2021-10-25 2022-01-21 网易(杭州)网络有限公司 Movement control method and device for slide bar with scales and electronic equipment
CN113961128B (en) * 2021-10-25 2023-08-11 网易(杭州)网络有限公司 Mobile control method and device for sliding bar with scales and electronic equipment

Also Published As

Publication number Publication date
CN111552430B (en) 2022-05-31

Similar Documents

Publication Publication Date Title
CN111552430B (en) Control method and device of sliding control, storage medium and electronic equipment
CN103914260B (en) Control method and device for operation object based on touch screen
CN107748641B (en) Numerical value adjustment control method and device, electronic equipment and storage medium
US10983671B2 (en) Terminal device, information processing method, and information processing program
US9513792B2 (en) Input gesture chart scaling
EP2750011A1 (en) Page switching method and device in interactive interface, and computer storage medium
US11029833B2 (en) Numerical value determination method, numerical value determination apparatus, electronic device and storage medium
CN110348412B (en) Key point positioning method and device, electronic equipment and storage medium
CN105892877A (en) Multi-finger closing/opening gesture recognition method and device as well as terminal equipment
EP4130961A1 (en) Shape selection method and apparatus, electronic device, storage medium and computer program
EP4047456A1 (en) Method and device for predicting drawing point of stylus pen
CN110413183B (en) Method and equipment for presenting page
TWI485582B (en) Method for correcting touch position
CN113391749A (en) Mouse click simulation method and device, computer readable storage medium and electronic equipment
Ushirobira et al. A forecasting algorithm for latency compensation in indirect human-computer interactions
CN111475391B (en) Eye movement data processing method, device and system
CN108604142B (en) Touch screen device operation method and touch screen device
CN107092433B (en) Touch control method and device of touch control all-in-one machine
US20140139462A1 (en) Method for correcting touch position
US20230070059A1 (en) False touch rejection method, terminal device, and storage medium
CN111580739B (en) Dynamic adjustment method and device for touch area of key and virtual keyboard
US20220004298A1 (en) Prediction control method, input system and computer readable recording medium
CN107656652A (en) Speed compensation method, device, computer equipment and the storage medium of slide
JP2023547002A (en) Identification method of K-line pattern and electronic equipment
CN107145242B (en) Method, device and equipment for displaying error-correcting words and storage medium

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