Method, device and electronic equipment for controlling dragging of objects in a collection of objects

By introducing a switching delay mechanism into the object collection, the problem of decreased drag-and-drop success rate caused by an increase in the number of objects per unit is solved, ensuring user operation accuracy and experience quality.

CN116301543BActive Publication Date: 2026-05-19HANGZHOU YOKA NETWORK TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
HANGZHOU YOKA NETWORK TECH CO LTD
Filing Date
2023-04-10
Publication Date
2026-05-19

AI Technical Summary

Technical Problem

As the number of individual objects in an object collection increases, the success rate of dragging and dropping the object that the user actually wants to create decreases significantly, resulting in a poor user gaming experience.

Method used

A configurable switching delay time mechanism is introduced. By setting the switching delay time of draggable objects in the object collection, the selected object is recorded and the timer time is compared with the switching delay time in real time. If the timer time is less than the switching delay time, the object is locked; otherwise, it is unlocked and the selected object is recorded again. The object is dragged out when the drag trigger action is responded to.

Benefits of technology

This effectively avoids object switching errors caused by user operation deviations, ensuring that the dragged-out object is the one the user actually wants, thus improving the user's operation success rate and gaming experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116301543B_ABST
    Figure CN116301543B_ABST
Patent Text Reader

Abstract

The application discloses a control method and device for object dragging in an object collection and electronic equipment. The method comprises the following steps: displaying an interface of an object collection in a terminal, wherein the object collection comprises a plurality of objects; setting a switching delay time of a dragable object in the object collection; recording a selected object as the dragable object, starting a press timer for the dragable object, comparing the press timer time and the switching delay time in real time, if the press timer time is less than the switching delay time, the dragable object is locked and cannot be changed, if the press timer time is greater than the switching delay time, the dragable object is unlocked, and the selected object after being unlocked is recorded as the dragable object again; and dragging the dragable object out of the object collection in response to a drag trigger action exceeding a virtual hot area line.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of computer technology, and specifically relates to a method, device, and electronic device for controlling dragging and dropping objects in an object collection. Background Technology

[0002] With the rapid development of computer technology, the size of an object collection is limited by the display size of the display device (including PC games, mobile games, etc.). When there are many objects arranged in a certain area, the objects are usually arranged in a stacking manner to solve the problem of object arrangement. The so-called stacking arrangement refers to the arrangement of all objects in a collection in a partially overlapping manner according to a predetermined order. The stacking order of the objects determines their overlapping display order. Because the size of the object collection is limited by the display size of the display device, when the size of the object collection is fixed, the more unit objects in the collection, the larger the overlapping area between the unit objects.

[0003] Today, gaming is a common form of entertainment in people's daily lives. Many game products currently incorporate the concept of "hand cards." A hand card is an instance of a collection of objects; a single hand card refers to an object, and a collection of multiple objects is called a hand set. Game products with a hand card concept typically require the ability to play cards. To provide users with a realistic card-playing experience, this is usually achieved through drag-and-drop gestures. This drag-and-drop method is used across various game platforms, including PC games, mobile games, web games, and cloud games. PC games refer to games running on a personal computer (PC); mobile games refer to games running on mobile devices (such as smartphones, tablets, and smartwatches); web games refer to games running on a web browser; and cloud games refer to games running on a game server. The above example of a hand set illustrates what a drag-and-drop control method for object collections is, providing a better understanding of object collection drag-and-drop for those skilled in the art.

[0004] Currently in games, the interaction between objects within a collection is typically based on the hotspot area of ​​each object to receive input signals. If the action of removing an object from the collection is implemented using drag-and-drop, there are generally two methods: First, the finger / mouse is pressed down within the effective hotspot area of ​​the object and held in place. The industry standard for this is as follows: By setting a virtual hotspot line that allows drag events to be activated, when the finger / mouse is pressed down within the effective hotspot area of ​​the object and held in place, the finger / mouse remains pressed down and drags within a certain directional range. When the drag exceeds the virtual hotspot line, the object is removed from the collection.

[0005] Due to the limited size of display devices, in order to facilitate users to quickly browse the information of each object in the object collection, the game product uses drag and drop on touch screen devices and cursor hover on PC devices to view each object in the collection one by one. The specific implementation method is as follows: on the touch screen device, when the finger is pressed down on the effective hot area of ​​a unit object and held down without being lifted, the finger is dragged towards other objects. When the finger and the touch point of the touch screen device enter the effective hot area of ​​another object, the other object will be identified as the currently active object, and the previous object will be invalidated.

[0006] Given the above context, if the number of unit objects in an object collection exceeds a certain limit, with a fixed collection size, the overlapping area of ​​the unit objects will increase, resulting in a smaller effective hotspot area for each unit object. Because users may have operational deviations when dragging objects out of the collection, the dragging direction might lead to other objects, resulting in the dragged object not being the one the user actually wants. Therefore, the success rate of dragging the object the user truly wants decreases significantly as the number of unit objects in the collection increases, leading to a poor user experience. Summary of the Invention

[0007] In view of the above-mentioned problems, the present invention provides a method, device and electronic device for controlling dragging objects in an object collection, which is used to solve the problem of decreasing success rate of dragging the object that the user actually wants to drag when the number of unit objects in the object collection increases.

[0008] To solve the above-mentioned technical problems, the present invention adopts the following technical solution:

[0009] The first aspect of this invention provides a method for controlling dragging and dropping objects in an object collection, comprising the following steps:

[0010] An interface that displays a collection of objects in a terminal, the collection of objects comprising several objects;

[0011] Set the switching delay time for draggable objects in an object collection;

[0012] Record the selected object as a draggable object, start a press timer for the draggable object, and compare the timer duration with the switching delay time in real time.

[0013] If the timer is pressed for less than the toggle delay time, the draggable object will be locked and cannot be modified.

[0014] If the timer is pressed for a period longer than the toggle delay time, the draggable object will be unlocked, and the selected object after unlocking will be re-recorded as a draggable object.

[0015] In response to a drag-triggered action that exceeds the virtual hot zone line, a draggable object is dragged out of the object collection.

[0016] In one possible implementation, the switching delay time is configured as an arbitrary floating-point number, where the arbitrary floating-point number is greater than 0.

[0017] In one possible implementation, the terminal includes a touch-screen display.

[0018] In one possible implementation, a finger presses down on the control hot zone of an object on the touch terminal, and this object is recorded as the selected object.

[0019] In one possible implementation, the drag-and-drop action is triggered by finger dragging.

[0020] In one possible implementation, the terminal includes a display screen with an external mouse.

[0021] In one possible implementation, the virtual cursor is controlled to hover within the object's control hotspot, and this object is recorded as the selected object.

[0022] In one possible implementation, the drag-triggered action is to generate a virtual click point and hold it while dragging.

[0023] In one possible implementation, the object is a hand of cards in a computer game.

[0024] A second aspect of the present invention provides a control device for dragging objects in an object collection, comprising:

[0025] The display module is used to display the interface of the object collection, which includes a number of objects;

[0026] The time setting module is used to set the switching delay time for draggable objects in an object collection;

[0027] The recording module is used to record that the selected object is a draggable object;

[0028] The timer start module is used to start a press timer for draggable objects;

[0029] The comparison module is used to compare the timer duration with the switching delay duration in real time.

[0030] If the timer is pressed for less than the toggle delay time, the draggable object will be locked and cannot be modified.

[0031] If the timer is pressed for a period longer than the toggle delay time, the draggable object will be unlocked, and the selected object after unlocking will be re-recorded as a draggable object.

[0032] The drag-triggered response module is used to respond to drag-triggered actions that exceed the virtual hot zone line, causing draggable objects to be dragged out of the object collection.

[0033] In one possible implementation, the switching delay time is configured as an arbitrary floating-point number, where the arbitrary floating-point number is greater than 0.

[0034] In one possible implementation, the display module is a touch-sensitive display screen.

[0035] In one possible implementation, a finger presses down on the control hot zone of an object on the touch terminal, and this object is recorded as the selected object.

[0036] In one possible implementation, the drag-and-drop action is triggered by finger dragging.

[0037] In one possible implementation, the display module is a display screen that includes an external mouse.

[0038] In one possible implementation, the virtual cursor is controlled to hover within the object's control hotspot, and this object is recorded as the selected object.

[0039] In one possible implementation, the drag-triggered action is to generate a virtual click point and hold it while dragging.

[0040] In one possible implementation, the object is a hand of cards in a computer game.

[0041] A third aspect of the present invention provides an electronic device, the electronic device including one or more processors and one or more memories, the one or more memories storing at least one piece of program code, the at least one piece of program code being loaded and executed by the one or more processors to implement the operation performed by the control method for dragging objects in an object collection as described in any of the preceding claims.

[0042] A fourth aspect of the present invention provides a storage medium storing at least one piece of program code, which is loaded and executed by a processor to implement the operation performed by the control method for dragging objects in an object collection as described in any of the preceding claims.

[0043] The present invention offers the following advantages: During the drag-and-drop operation of objects within an object collection using a finger or mouse, a configurable constant, defined as the switching delay time for draggable objects, is introduced. This allows for manual locking and switching of objects within the draggable object collection based on a time dimension. This avoids object switching due to user error, ensuring that the dragged object is the one the user actually wants when the drag exceeds the virtual hotspot line. Furthermore, it significantly reduces the drop in the success rate of dragging the desired object as the number of objects in the collection increases, ultimately improving the user's gaming experience. The switching delay time is a configurable time constant; in most game scenarios, users need sufficient time to confirm an object before dragging it out of the collection. This solution can be applied to drag-and-drop control of cards in computer games, drag-and-drop selection of food in ordering scenarios, and drag-and-drop selection of selected objects in shopping scenarios, among others. Attached Figure Description

[0044] Figure 1 This is a flowchart illustrating the steps of the object dragging control method in an object collection according to an embodiment of the present invention.

[0045] Figure 2 This is a schematic diagram showing a collection of hand cards in a specific application example.

[0046] Figure 3 This is a schematic diagram showing the object manipulation hotspot in a specific application example, where the hand is the object collection.

[0047] Figure 4 This is a schematic diagram showing the selected objects in a collection of cards in a specific application example.

[0048] Figure 5 This is a schematic diagram showing the drag trajectory of a hand set as an object collection in a specific application example;

[0049] Figure 6 This is a display illustration of the selected object being switched within a collection of cards in a specific application example.

[0050] Figure 7This is a diagram illustrating how selected objects are dragged out and displayed within a collection of cards, representing a specific application example.

[0051] Figure 8 This is a schematic diagram showing the selected object being dragged out and displayed in a specific application example, where the hand is the object collection.

[0052] Figure 9 This is a schematic diagram showing the food items being ordered as a collection of objects in a specific application example.

[0053] Figure 10 This is a schematic diagram showing the object manipulation hotspot in a specific application example, where food items are the object collection.

[0054] Figure 11 This is a schematic diagram showing the selected objects in a collection of food items in a specific application example.

[0055] Figure 12 This is a schematic diagram showing the drag trajectory of a collection of food items in a specific application example.

[0056] Figure 13 This is a display illustration of the selected object being switched within a collection of cards in a specific application example.

[0057] Figure 14 This is a diagram illustrating how the selected object is dragged out and displayed in a specific application example, where the hand is the object collection.

[0058] Figure 15 This is a schematic diagram showing the selected object being dragged out and displayed in a specific application example, where the hand is the object collection.

[0059] Figure 16 This is a schematic diagram of the control device for dragging objects in an object collection according to an embodiment of the present invention;

[0060] Figure 17 This is a schematic block diagram of an electronic device according to an embodiment of the present invention. Detailed Implementation

[0061] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0062] Reference Figure 1The diagram shows a flowchart of the control method for dragging objects in an object collection according to an embodiment of the present invention, including the following steps:

[0063] S10, Display the interface of the object collection in the terminal, the object collection including a number of objects;

[0064] S20, Set the switching delay time for draggable objects in the object collection;

[0065] S30: Record the selected object as a draggable object, start a press timer for the draggable object, and compare the timer duration with the switching delay time in real time.

[0066] If the timer is pressed for less than the toggle delay time, the draggable object will be locked and cannot be modified.

[0067] If the timer is pressed for a period longer than the toggle delay time, the draggable object will be unlocked, and the selected object after unlocking will be re-recorded as a draggable object.

[0068] S40, in response to a drag-triggered action that exceeds the virtual hot zone line, the draggable object is dragged out of the object collection.

[0069] In one embodiment of the present invention, the terminal includes a touch-screen display. When a finger presses on the control area of ​​an object on the touch-screen terminal, this object is recorded as the selected object. The drag-triggered action is finger dragging.

[0070] In one embodiment of the present invention, the terminal includes a display screen with an external mouse, controlling a virtual cursor to hover within the object's control hotspot, and this object is recorded as the selected object. The drag-triggered action involves generating a virtual click point and holding it while dragging. That is, the virtual cursor generates a virtual click point on the screen as the starting point of the drag trajectory, and by holding the click point (keeping the mouse clicked), a drag trajectory can be generated.

[0071] In a specific application example, the implementation process of using objects in an object collection as hand cards in a computer game is explained in detail. For the target game, the game screen can be displayed on a display device; for ease of understanding, in the following description, hand cards are used to represent objects, and hand card sets are used to represent object collections. For example... Figure 2As shown, hand group 11 can be considered a collection of objects containing multiple cards. This application example only shows 10 cards for illustration, with cards 6 and 7 being the focus of subsequent descriptions. The virtual hotspot line 12 is the threshold line for cards to be dragged out of hand group 11. When a card is dragged beyond the virtual hotspot line 12, the client device will consider that card as having been dragged out of the hand group. Assume that the parameter used by the virtual hotspot line 12 to determine which card is dragged out each time is defined as the hand object X that can currently be dragged out of the hand group.

[0072] like Figure 3 As shown, hand 6 has a hand manipulation hotspot 61. It can be seen that when the size of hand set 11 is fixed, if the number of individual hand cards increases, currently... Figure 2 The example shows 10 cards in a hand. If this number is increased to 20, it can be inferred that the control hotspot for each card will decrease. In existing technology, the card object X that can be dragged out is determined by the control hotspot of the card held by the finger or mouse before dragging it to the virtual hotspot line 12. In this specific application embodiment, the client device will pre-establish a configuration constant, defined as the switching delay time t of the card object X that can be dragged out. 延时 This constant t 延时 It can be freely configured to any floating-point number, and any floating-point number is greater than 0.

[0073] like Figure 4 As shown, if it is a touch terminal, when a finger is pressed within the control area of ​​the hand card 6 on the touch terminal (i.e., the display device of the target game), the hand card 6 is processed as "selected". This state can be displayed on the interface in various ways; in this embodiment, the "currently selected state" of the hand card 6 is represented by the hand card 6 rising to a certain height on the Y-axis. If it is a PC, when the mouse controls the virtual cursor to hover within the control area of ​​the hand card 6 on the display device of the target game, the hand card 6 is processed as "selected".

[0074] In addition, if it is a touch terminal, the finger is pressed within the hand control hotspot of hand card 6 on the touch screen device (i.e., the display device of the target game); if it is a PC, the mouse is used on the display device of the target game, the virtual cursor is hovered over the hand control hotspot of hand card 6 and the left mouse button is pressed; at this time, the client device records the following data parameters: the first is that for virtual hotspot line 12, the hand card object X that can be dragged out is hand card 6; the second is the pressing duration t of hand card 6 that can be controlled. 按下 And the client device supports t 按下 Start timing and compare t in real time. 按下 With t 延时In this specific application embodiment, the following logical relationship is proposed regarding the size of the [object / structure]:

[0075] If t 按下 <t 延时 If so, the hand object X that can be dragged out is locked and cannot be changed;

[0076] If t 按下 >t 延时 If so, the hand card object X that can be dragged out of the hand group is unlocked. At this time, the hand card object X is determined according to the hand card control hot zone of the finger or mouse. The selected object after unlocking is recorded as the draggable object again.

[0077] like Figure 5 As shown, drag trajectory 13 represents the movement trajectory of the hand card 6 after the finger or mouse is pressed and dragged; it can be seen that in drag trajectory 13, the finger or mouse will drag through the hand card control hot zone 71 of the hand card 7, and finally cross the virtual hot zone line 12 above the hand card control hot zone 71.

[0078] like Figure 6 As shown, because the finger or mouse click and drag has entered the hand control hotspot 71 of hand card 7, hand card 7 will be processed as "currently selected". This state can be represented in various ways on the interface; in this embodiment, the "currently selected state" of hand card 7 is represented by hand card 7 rising to a certain height on the y-axis; at this time, although hand card 7 is in the "currently selected state", for the virtual hotspot line 12, the hand card object X that can be dragged out will be adjusted according to the client device's t 按下 With t 延时 After a real-time comparison of the sizes, two scenarios may occur:

[0079] Case 1: t 按下 <t 延时 If the current draggable hand object X = hand 6, it cannot be changed to hand 7;

[0080] Case 2: t 按下 >t 延时 If so, the hand object X that can be dragged out is unlocked. At this time, the finger or mouse is currently in the hand control hotspot 71 of hand 7. Therefore, the hand object X that can be dragged out is hand 7, which means that the draggable hand object X has been switched.

[0081] Based on the two scenarios above, the following events will occur:

[0082] like Figure 7The following is the immediate event following situation 1: when the finger or mouse drags beyond the virtual hot zone line 12, the client device determines that the current hand card object X = hand card 6 can be dragged out of the hand card group, and the client device drags hand card 6 out of the hand card group 11.

[0083] like Figure 8 The following is the immediate event following situation 2: when the finger or mouse drags beyond the virtual hot zone line 12, the client device determines that the hand object X = hand 7 can be dragged out of the hand group, and the client device drags hand 7 out of hand group 11.

[0084] The above embodiments illustrate the specific implementation methods of touch-screen displays and external mouse displays using card examples. Next, this application will use a large fixed touchscreen device as an example to describe the specific implementation methods, specifically a restaurant touchscreen ordering machine.

[0085] For a specific food order, a display device can be used to show the order screen. For ease of understanding, in the following explanation, food items are used to represent objects, and food groups are used to represent collections of objects. For example... Figure 9 As shown, food group 21 can be considered a collection of objects containing multiple foods. Food group 21, as a list, cannot be scrolled; that is, the total width of the list is fixed. If the number of foods increases, the spacing between them decreases. Only 11 foods are shown here for illustration, with hamburger A1 and hamburger B1 being the focus of later description. The virtual heatsink line 22 is the threshold line created by dragging food from food group 21. When food is dragged beyond the virtual heatsink line 22, the client device considers that food to be dragged out of the food group. Let's assume the parameter used by the virtual heatsink line 22 to determine which food is dragged out of the food group is defined as the food object Y that can be dragged out of the food group. The UI plate 23 is a UI representation object in the display device, meaning that when food is dragged past the virtual heatsink line 22, and the finger is lifted, the food object X that was dragged out of the food group is automatically placed into the UI plate 23.

[0086] like Figure 10 As shown, hamburger A1 has a food manipulation heat zone A2. It can be seen that when the size of food group 11 is constant, if the number of food items per unit increases, currently... Figure 10 The example shows 11 food items. If the number is increased to 20, it can be inferred that the control area of ​​each food item will decrease. In existing technical solutions (not in this embodiment), the food object Y that can be dragged out of the food group is determined based on the control area of ​​the food currently held by the finger before dragging to the virtual hotspot line 12. In the embodiment, the client device pre-establishes a configuration constant, defined as t of the food object Y that can be dragged out of the food group.延时 .

[0087] like Figure 11 As shown, as a large fixed touchscreen device, when a finger is pressed within the food control hotspot of hamburger A1 on the touchscreen device (i.e., the display device for the target order), hamburger A1 is processed as being in a "selected state." The representation of this state on the interface can be determined by the specific design. In this embodiment, the "currently selected state" of hamburger A1 is represented by hamburger A1 rising to a certain height along the Y-axis. At this time, the client device records data parameters: the first is that, for the virtual hotspot line 22, the currently draggable food object Y = hamburger A1; the second is the currently controllable t of hamburger A1. 按下 And the client device supports t 按下 Start timing and compare t in real time. 按下 With t 延时 Regarding the size, the following logical relationship is proposed in the embodiments of this application:

[0088] If t 按下 <t 延时 If this happens, the food object Y that can be dragged out of the food group is locked and cannot be changed.

[0089] If t 按下 >t 延时 If the food object Y that can be dragged out of the food group is unlocked, the food object Y will be determined based on the food control hot zone of the food currently being touched by the finger. In other words, only at this time can the food object Y be switched.

[0090] like Figure 12 As shown, drag trajectory 9 represents the movement trajectory of the finger after pressing and holding hamburger A1; it can be seen that in drag trajectory 23, the finger will drag through the food control hot zone B2 of hamburger B1, and finally cross the virtual hot zone line 22 above the food control hot zone B2.

[0091] like Figure 13 As shown, because the finger has been pressed and dragged into the food control hotspot B2 of hamburger B1, hamburger B1 will be processed by the client as "currently selected". This state can be represented in various ways on the interface; in this embodiment, the "currently selected state" of hamburger B1 is represented by hamburger B1 rising to a certain height on the y-axis; at this time, although hamburger B1 is in the "currently selected state", for the virtual hotspot line 22, the food object Y of the currently draggable food group will be adjusted according to the client device's t 按下 With t 延时 After a real-time comparison of the sizes, two scenarios may occur:

[0092] Case 1: t 按下 <t延时 If the food object Y = Hamburger A1 that can be dragged out of the food group cannot be changed to Hamburger B2;

[0093] Case 2: t 按下 >t 延时 If the current draggable food group food object Y is unlocked, the finger is currently positioned in the food control hotspot B2 of hamburger B1. Therefore, the current draggable food group food object Y = hamburger B1, meaning that food object Y has been switched.

[0094] Based on the two scenarios above, the following events will occur:

[0095] like Figure 14 The following is the immediate event following situation 1: when the finger drags beyond the virtual hot zone line 22, the client device determines that the food object Y = hamburger A1 can be dragged out of the food group, and the client device drags hamburger A1 out of the food group 11.

[0096] like Figure 15 The following is the immediate event following scenario 2: when the finger drags beyond the virtual hot zone line 22, the client device determines that the food object X = hamburger B1 can be dragged out of the food group, and the client device drags hamburger B1 out of the food group 11.

[0097] For embodiments corresponding to the method of this invention, see [link to relevant documentation]. Figure 16 The diagram shows a schematic of a control device for dragging objects in an object collection according to an embodiment of the present invention. The device includes: a display module 101 for displaying the interface of the object collection, which includes several objects; a time setting module 102 for setting a switching delay time for draggable objects in the object collection; a recording module 103 for recording selected objects as draggable objects; a timer start module 104 for starting a timer for draggable objects; a comparison module 105 for comparing the timer duration with the switching delay time in real time. If the timer duration is less than the switching delay time, the draggable object is locked and cannot be changed; if the timer duration is greater than the switching delay time, the draggable object is unlocked, and the selected object after unlocking is re-recorded as a draggable object; and a drag trigger response module 106 for responding to dragging actions exceeding virtual hotspot lines, causing the draggable object to be dragged out of the object collection.

[0098] In one embodiment of the present invention, the display module 101 can be a touch-sensitive display screen, in which case touch operations are performed directly on the display screen. When a finger presses down within the control hot zone of an object on the touch terminal, this object is recorded as the selected object. The drag-triggered action is finger dragging.

[0099] In one embodiment of the present invention, the display module 101 can be a display screen for an external mouse. When the virtual cursor of the mouse hovers over the object's control area, this object is recorded as the selected object. The drag-triggered action involves generating a virtual click point and holding it while dragging.

[0100] In one embodiment of the present invention, the switching delay time is configured as an arbitrary floating-point number, wherein the arbitrary floating-point number is greater than 0.

[0101] In a specific application example, the implementation process of using objects in an object collection as hand cards in a computer game is explained in detail. For the target game, the game screen can be displayed on a display device; for ease of understanding, in the following description, hand cards are used to represent objects, and hand card sets are used to represent object collections. For example... Figure 2 As shown, hand group 11 can be considered a collection of objects containing multiple cards. This application example only shows 10 cards for illustration, with cards 6 and 7 being the focus of subsequent descriptions. The virtual hotspot line 12 is the threshold line for cards to be dragged out of hand group 11. When a card is dragged beyond the virtual hotspot line 12, the client device will consider that card as having been dragged out of the hand group. Assume that the parameter used by the virtual hotspot line 12 to determine which card is dragged out each time is defined as the hand object X that can currently be dragged out of the hand group.

[0102] like Figure 3 As shown, hand 6 has a hand manipulation hotspot 61. It can be seen that when the size of hand set 11 is fixed, if the number of individual hand cards increases, currently... Figure 2 The example shows 10 cards in a hand. If this number is increased to 20, it can be inferred that the control hotspot for each card will decrease. In existing technology, the card object X that can be dragged out is determined by the control hotspot of the card held by the finger or mouse before dragging it to the virtual hotspot line 12. In this specific application embodiment, the client device will pre-establish a configuration constant, defined as the switching delay time t of the card object X that can be dragged out. 延时 This constant t 延时 It can be freely configured to any floating-point number, and any floating-point number is greater than 0.

[0103] like Figure 4As shown, if it is a touch terminal, when a finger is pressed within the control area of ​​the hand card 6 on the touch terminal (i.e., the display device of the target game), the hand card 6 is processed as "selected". This state can be displayed on the interface in various ways; in this embodiment, the "currently selected state" of the hand card 6 is represented by the hand card 6 rising to a certain height on the Y-axis. If it is a PC, when the mouse controls the virtual cursor to hover within the control area of ​​the hand card 6 on the display device of the target game, the hand card 6 is processed as "selected".

[0104] In addition, if it is a touch terminal, the finger is pressed within the hand control hotspot of hand card 6 on the touch screen device (i.e., the display device of the target game); if it is a PC, the mouse is used on the display device of the target game, the virtual cursor is hovered over the hand control hotspot of hand card 6 and the left mouse button is pressed; at this time, the client device records the following data parameters: the first is that for virtual hotspot line 12, the hand card object X that can be dragged out is hand card 6; the second is the pressing duration t of hand card 6 that can be controlled. 按下 And the client device supports t 按下 Start timing and compare t in real time. 按下 With t 延时 In this specific application embodiment, the following logical relationship is proposed regarding the size of the [object / structure]:

[0105] If t 按下 <t 延时 If so, the hand object X that can be dragged out is locked and cannot be changed;

[0106] If t 按下 >t 延时 If so, the hand card object X that can be dragged out of the hand group is unlocked. At this time, the hand card object X is determined according to the hand card control hot zone of the finger or mouse. The selected object after unlocking is recorded as the draggable object again.

[0107] like Figure 5 As shown, drag trajectory 13 represents the movement trajectory of the hand card 6 after the finger or mouse is pressed and dragged; it can be seen that in drag trajectory 13, the finger or mouse will drag through the hand card control hot zone 71 of the hand card 7, and finally cross the virtual hot zone line 12 above the hand card control hot zone 71.

[0108] like Figure 6As shown, because the finger or mouse click and drag has entered the hand control hotspot 71 of hand card 7, hand card 7 will be processed as "currently selected". This state can be represented in various ways on the interface; in this embodiment, the "currently selected state" of hand card 7 is represented by hand card 7 rising to a certain height on the y-axis; at this time, although hand card 7 is in the "currently selected state", for the virtual hotspot line 12, the hand card object X that can be dragged out will be adjusted according to the client device's t 按下 With t 延时 After a real-time comparison of the sizes, two scenarios may occur:

[0109] Case 1: t 按下 <t 延时 If the current draggable hand object X = hand 6, it cannot be changed to hand 7;

[0110] Case 2: t 按下 >t 延时 If so, the hand object X that can be dragged out is unlocked. At this time, the finger or mouse is currently in the hand control hotspot 71 of hand 7. Therefore, the hand object X that can be dragged out is hand 7, which means that the draggable hand object X has been switched.

[0111] Based on the two scenarios above, the following events will occur:

[0112] like Figure 7 The following is the immediate event following situation 1: when the finger or mouse drags beyond the virtual hot zone line 12, the client device determines that the current hand card object X = hand card 6 can be dragged out of the hand card group, and the client device drags hand card 6 out of the hand card group 11.

[0113] like Figure 8 The following is the immediate event following situation 2: when the finger or mouse drags beyond the virtual hot zone line 12, the client device determines that the hand object X = hand 7 can be dragged out of the hand group, and the client device drags hand 7 out of hand group 11.

[0114] The above embodiments illustrate the specific implementation methods of touch-screen displays and external mouse displays using card examples. Next, this application will use a large fixed touchscreen device as an example to describe the specific implementation methods, specifically a restaurant touchscreen ordering machine.

[0115] For a specific food order, a display device can be used to show the order screen. For ease of understanding, in the following explanation, food items are used to represent objects, and food groups are used to represent collections of objects. For example... Figure 9As shown, food group 21 can be considered a collection of objects containing multiple foods. Food group 21, as a list, cannot be scrolled; that is, the total width of the list is fixed. If the number of foods increases, the spacing between them decreases. Only 11 foods are shown here for illustration, with hamburger A1 and hamburger B1 being the focus of later description. The virtual heatsink line 22 is the threshold line created by dragging food from food group 21. When food is dragged beyond the virtual heatsink line 22, the client device considers that food to be dragged out of the food group. Let's assume the parameter used by the virtual heatsink line 22 to determine which food is dragged out of the food group is defined as the food object Y that can be dragged out of the food group. The UI plate 23 is a UI representation object in the display device, meaning that when food is dragged past the virtual heatsink line 22, and the finger is lifted, the food object X that was dragged out of the food group is automatically placed into the UI plate 23.

[0116] like Figure 10 As shown, hamburger A1 has a food manipulation heat zone A2. It can be seen that when the size of food group 11 is constant, if the number of food items per unit increases, currently... Figure 10 The example shows 11 food items. If the number is increased to 20, it can be inferred that the control area of ​​each food item will decrease. In existing technical solutions (not in this embodiment), the food object Y that can be dragged out of the food group is determined based on the control area of ​​the food currently held by the finger before dragging to the virtual hotspot line 12. In the embodiment, the client device pre-establishes a configuration constant, defined as t of the food object Y that can be dragged out of the food group. 延时 .

[0117] like Figure 11 As shown, as a large fixed touchscreen device, when a finger is pressed within the food control hotspot of hamburger A1 on the touchscreen device (i.e., the display device for the target order), hamburger A1 is processed as being in a "selected state." The representation of this state on the interface can be determined by the specific design. In this embodiment, the "currently selected state" of hamburger A1 is represented by hamburger A1 rising to a certain height along the Y-axis. At this time, the client device records data parameters: the first is that, for the virtual hotspot line 22, the currently draggable food object Y = hamburger A1; the second is the currently controllable t of hamburger A1. 按下 And the client device supports t 按下 Start timing and compare t in real time. 按下 With t 延时 Regarding the size, the following logical relationship is proposed in the embodiments of this application:

[0118] If t 按下 <t 延时If this happens, the food object Y that can be dragged out of the food group is locked and cannot be changed.

[0119] If t 按下 >t 延时 If the food object Y that can be dragged out of the food group is unlocked, the food object Y will be determined based on the food control hot zone of the food currently being touched by the finger. In other words, only at this time can the food object Y be switched.

[0120] like Figure 12 As shown, drag trajectory 9 represents the movement trajectory of the finger after pressing and holding hamburger A1; it can be seen that in drag trajectory 23, the finger will drag through the food control hot zone B2 of hamburger B1, and finally cross the virtual hot zone line 22 above the food control hot zone B2.

[0121] like Figure 13 As shown, because the finger has been pressed and dragged into the food control hotspot B2 of hamburger B1, hamburger B1 will be processed by the client as "currently selected". This state can be represented in various ways on the interface; in this embodiment, the "currently selected state" of hamburger B1 is represented by hamburger B1 rising to a certain height on the y-axis; at this time, although hamburger B1 is in the "currently selected state", for the virtual hotspot line 22, the food object Y of the currently draggable food group will be adjusted according to the client device's t 按下 With t 延时 After a real-time comparison of the sizes, two scenarios may occur:

[0122] Case 1: t 按下 <t 延时 If the food object Y = Hamburger A1 that can be dragged out of the food group cannot be changed to Hamburger B2;

[0123] Case 2: t 按下 >t 延时 If the current draggable food group food object Y is unlocked, the finger is currently positioned in the food control hotspot B2 of hamburger B1. Therefore, the current draggable food group food object Y = hamburger B1, meaning that food object Y has been switched.

[0124] Based on the two scenarios above, the following events will occur:

[0125] like Figure 14 The following is the immediate event following situation 1: when the finger drags beyond the virtual hot zone line 22, the client device determines that the food object Y = hamburger A1 can be dragged out of the food group, and the client device drags hamburger A1 out of the food group 11.

[0126] like Figure 15The following is the immediate event following scenario 2: when the finger drags beyond the virtual hot zone line 22, the client device determines that the food object X = hamburger B1 can be dragged out of the food group, and the client device drags hamburger B1 out of the food group 11.

[0127] These modules can be one or more integrated circuits configured to implement the above methods, such as one or more Application Specific Integrated Circuits (ASICs), one or more microprocessors, or one or more Field Programmable Gate Arrays (FPGAs). Alternatively, when a module is implemented using processing element scheduler code, the processing element can be a general-purpose processor, such as a Central Processing Unit (CPU) or other processor capable of calling program code. Furthermore, these modules can be integrated together as a system-on-chip (SoC). Ultimately, they can all be presented as touch-operated terminals, such as mobile phones and tablets, which can be operated by hand or stylus.

[0128] Reference Figure 17 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Figure 17 The electronic device 300 shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments of the present invention. The electronic device 300 is manifested as a general-purpose computing device. Components of the electronic device 300 may include, but are not limited to: at least one processing unit 310, a bus connecting different device components (including a storage unit 320 and the processing unit 310), an I / O interface 330, a display unit 340, etc. The storage unit stores program code, which can be executed by the processing unit 310 to perform the steps described in the above-described control method section for dragging objects in the object collection, according to various exemplary embodiments of the present invention. For example, the processing unit 310 may perform the following steps:

[0129] S10, Display the interface of the object collection in the terminal. The object collection includes several objects.

[0130] S20, Set the switching delay time for draggable objects in the object collection;

[0131] S30: Record the selected object as a draggable object, start a press timer for the draggable object, and compare the timer duration with the switching delay time in real time.

[0132] If the timer is pressed for less than the toggle delay time, the draggable object will be locked and cannot be modified.

[0133] If the timer is pressed for a period longer than the toggle delay time, the draggable object will be unlocked, and the selected object after unlocking will be re-recorded as a draggable object.

[0134] S40, in response to a drag-triggered action that exceeds the virtual hot zone line, the draggable object is dragged out of the object collection.

[0135] The storage unit 320 may include a readable medium in the form of a volatile storage unit, such as a random access memory (RAM) unit 3201 and / or a cache memory unit 3202, and may further include a read-only memory unit (ROM) unit 3203. The storage unit 320 may also include a program / utility having a set (at least one) of program modules, including but not limited to: operating devices, one or more application programs, other program modules, and program data, each or some combination of these examples may include an implementation of a network environment.

[0136] A bus can represent one or more of several types of bus structures, including a memory cell bus or memory cell controller, a peripheral bus, a graphics acceleration port, a processing unit, or a local bus that uses any of the various bus structures.

[0137] Electronic device 300 can also communicate with one or more external devices 400 (e.g., keyboard, pointing device, Bluetooth device, etc.), and with one or more devices that enable a user to interact with electronic device 300, and / or with any device that enables electronic device 300 to communicate with one or more other computing devices (e.g., router, modem, etc.). This communication can be performed via an input / output (I / O) interface. Furthermore, electronic device 300 can also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN), and / or public network (Internet)) via network adapter 350. Network adapter 350 can communicate with other modules of electronic device 300 via a bus. Electronic device 300 displays the required information via display unit 340. It should be understood that, although... Figure 3 As not shown, other hardware and / or software modules may be used in conjunction with electronic device 300, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID devices, tape drives, and data backup storage devices.

[0138] Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described in this invention can be implemented by software or by combining software with necessary hardware. Therefore, the technical solution according to the embodiments of this invention can be embodied in the form of a software product, which can be stored in a computer-readable storage medium (such as a CD-ROM, USB flash drive, external hard drive, etc.) or on a network, including several instructions to cause a computing device (such as a personal computer, server, or network device, etc.) to execute the object dragging control method in the object collection according to this invention. When the computer program is executed by a data processing device, it enables the computer-readable storage medium to implement the above-described method of this invention, namely, including the following steps:

[0139] S10, Display the interface of the object collection in the terminal. The object collection includes several objects.

[0140] S20, Set the switching delay time for draggable objects in the object collection;

[0141] S30: Record the selected object as a draggable object, start a press timer for the draggable object, and compare the timer duration with the switching delay time in real time.

[0142] If the timer is pressed for less than the toggle delay time, the draggable object will be locked and cannot be modified.

[0143] If the timer is pressed for a period longer than the toggle delay time, the draggable object will be unlocked, and the selected object after unlocking will be re-recorded as a draggable object.

[0144] S40, in response to a drag-triggered action that exceeds the virtual hot zone line, the draggable object is dragged out of the object collection.

[0145] Computer programs can be stored on one or more computer-readable media. Computer-readable media can be readable signal media or readable storage media. Readable storage media can be, for example, but not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor devices, apparatuses, or any combination thereof. More specific examples (a non-exhaustive list) of readable storage media include: electrical connections having one or more wires, portable disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.

[0146] Computer-readable storage media may include data signals propagated in baseband or as part of a carrier wave, carrying readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A readable storage medium may also be any readable medium other than a readable storage medium that can transmit, propagate, or transfer a program for use by or in connection with an instruction execution device, apparatus, or apparatus. The program code contained on the readable storage medium may be transmitted using any suitable medium, including but not limited to wireless, wired, optical fiber, RF, etc., or any suitable combination thereof.

[0147] Program code for performing the operations of embodiments of the present invention can be written in any combination of one or more programming languages. The program code can execute entirely on the user's computing device, partially on the user's computing device, as a standalone software package, partially on the user's computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving remote computing devices, the remote computing device can be connected to the user's computing device via any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computing device (e.g., via the Internet using an Internet service provider).

[0148] In summary, this invention can be implemented in hardware, or as software modules running on one or more processors, or a combination thereof. Those skilled in the art will understand that in practice, general-purpose data processing devices such as microprocessors or digital signal processors (DSPs) can be used to implement some or all of the functions of some or all of the components according to the embodiments of the invention. The invention can also be implemented as a device or apparatus program (e.g., a computer program and computer program product) for performing part or all of the methods described herein. Such programs implementing the invention can be stored on a computer-readable medium or can take the form of one or more signals. Such signals can be downloaded from an Internet website, provided on a carrier signal, or provided in any other form.

[0149] It should be understood that the exemplary embodiments described herein are illustrative and not restrictive. Although one or more embodiments of the invention have been described in conjunction with the accompanying drawings, those skilled in the art will understand that various changes in form and detail may be made without departing from the spirit and scope of the invention as defined by the appended claims.

Claims

1. A method for controlling dragging and dropping objects in an object collection, characterized in that, Includes the following steps: An interface that displays a collection of objects in a terminal, the collection of objects comprising several objects; Set the switching delay time for draggable objects in an object collection; Record the selected object as a draggable object, start a press timer for the draggable object, and compare the timer duration with the switching delay time in real time. If the timer is pressed for less than the toggle delay time, the draggable object will be locked and cannot be modified. If the timer is pressed for a period longer than the toggle delay time, the draggable object will be unlocked, and the selected object after unlocking will be re-recorded as a draggable object. In response to a drag-triggered action that exceeds the virtual hot zone line, a draggable object is dragged out of the object collection.

2. The method for controlling object dragging in an object collection as described in claim 1, characterized in that, The switching delay time is configured as an arbitrary floating-point number, where the arbitrary floating-point number is greater than 0.

3. The method for controlling object dragging in an object collection as described in claim 1, characterized in that, The terminal includes a touch-screen display.

4. The method for controlling object dragging in an object collection as described in claim 3, characterized in that, When a finger presses on the control area of ​​an object on a touch terminal, that object is recorded as the selected object.

5. The method for controlling object dragging in an object collection as described in claim 3, characterized in that, The drag-and-drop action is triggered by finger dragging.

6. The method for controlling object dragging in an object collection as described in claim 1, characterized in that, The terminal includes a display screen for connecting an external mouse.

7. The method for controlling object dragging in an object collection as described in claim 6, characterized in that, When the virtual cursor is hovered over an object's control area, that object is recorded as the selected object.

8. The method for controlling object dragging in an object collection as described in claim 6, characterized in that, The drag-and-drop trigger action is to generate a virtual click point and hold it while dragging.

9. The method for controlling object dragging in an object collection as described in any one of claims 1 to 8, characterized in that, The object in question is a hand of cards in a computer game.

10. A control device for dragging objects in an object collection, characterized in that, include: The display module is used to display the interface of the object collection, which includes a number of objects; The time setting module is used to set the switching delay time for draggable objects in an object collection; The recording module is used to record that the selected object is a draggable object; The timer start module is used to start a press timer for draggable objects; The comparison module is used to compare the timer duration with the switching delay duration in real time. If the timer is pressed for less than the toggle delay time, the draggable object will be locked and cannot be modified. If the timer is pressed for a period longer than the toggle delay time, the draggable object will be unlocked, and the selected object after unlocking will be re-recorded as a draggable object. The drag-triggered response module is used to respond to drag-triggered actions that exceed the virtual hot zone line, causing draggable objects to be dragged out of the object collection.

11. The control device for dragging objects in an object collection as described in claim 10, characterized in that, The switching delay time is configured as an arbitrary floating-point number, where the arbitrary floating-point number is greater than 0.

12. The control device for dragging objects in an object collection as described in claim 10, characterized in that, The display module is a touch-screen display.

13. The control device for dragging objects in an object collection as described in claim 12, characterized in that, When a finger presses on the control area of ​​an object on a touch terminal, that object is recorded as the selected object.

14. The control device for dragging objects in an object collection as described in claim 12, characterized in that, The drag-and-drop action is triggered by finger dragging.

15. The control device for dragging objects in an object collection as described in claim 10, characterized in that, The display module is a display screen that includes an external mouse.

16. The control device for dragging objects in an object collection as described in claim 15, characterized in that, When the virtual cursor is hovered over an object's control area, that object is recorded as the selected object.

17. The control device for dragging objects in an object collection as described in claim 15, characterized in that, The drag-and-drop trigger action is to generate a virtual click point and hold it while dragging.

18. The control device for dragging objects in an object collection as described in any one of claims 10 to 17, characterized in that, The object in question is a hand of cards in a computer game.

19. An electronic device, characterized in that, The electronic device includes one or more processors and one or more memories, wherein at least one piece of program code is stored in the one or more memories, and the at least one piece of program code is loaded and executed by the one or more processors to implement the operation performed by the control method for dragging objects in an object collection as described in any one of claims 1 to 9.

20. A storage medium, characterized in that, The storage medium stores at least one piece of program code, which is loaded and executed by a processor to implement the operation performed by the control method for dragging objects in an object collection as described in any one of claims 1 to 9.