An object operation method and related device

By setting the adsorption state and desorption state in the terminal, the problem of inflexible adjustment of the target object position in the prior art is solved, and the free movement of the target object within the adsorption range is achieved, and the user experience is improved.

CN119414999BActive Publication Date: 2025-06-06FLYING FOX INFORMATION TECH TIANJIN CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510009650.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-01-03
Publication Date
2025-06-06
Estimated Expiration
2045-01-03

AI Technical Summary

Technical Problem

The existing adsorption function cannot achieve fine-tuning of the position of the target object within the adsorption range, resulting in lack of flexibility in adjusting the position of the target object and poor user experience.

Method used

By setting the adsorption state and desorption state in the terminal, the target object is allowed to move freely within the adsorption range, thereby flexibly adjusting its position.

Benefits of technology

The free movement of the target object within the adsorption range is achieved, editing accuracy and efficiency are improved, and user experience is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119414999B_ABST
    Figure CN119414999B_ABST
Patent Text Reader

Abstract

The present application provides an object operation method and related equipment. The method includes: the terminal presents a target object to the user through a display interface, wherein the target object is located at an adsorption position of the display interface, the adsorption position is located in a first adsorption range, and the target object is in an adsorption state. Then, the terminal receives a moving operation request triggered by the user for moving the target object. When the theoretical position of the target object after moving according to the moving operation request exceeds the first adsorption range, the terminal modifies the state of the target object to a released adsorption state, and moves the target object from the adsorption position. In this way, the method realizes the free movement of the target object within the adsorption range, so that the position of the target object can be flexibly adjusted to improve editing accuracy and efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to an object operation method, apparatus, device, and computer-readable storage medium. Background Art

[0002] With the development of science and technology, terminals are facing more and more complex user needs when processing data and performing tasks. Terminals not only need to display information and receive user input data, but also need to implement functions by operating objects, such as reading, modifying, deleting or creating objects to complete data processing tasks, thereby realizing user needs and system functions. Among them, object operations allow users to intuitively operate data through a graphical interface or command line interface, providing a user-friendly way to improve user experience.

[0003] Considering the accuracy of user operations, current object operations often require a set of auxiliary functions to facilitate user editing, such as the automatic alignment function of objects in the interface. Among them, the adsorption function, as an important manifestation of the automatic alignment function, can directly move the target object to the position to be adsorbed when it moves into the adsorption range, thereby significantly improving the accuracy and efficiency of the operation.

[0004] However, the current adsorption function cannot achieve fine-tuning of the position of the target object within the adsorption range, which makes the position adjustment of the target object lack of flexibility and poor user experience. Summary of the invention

[0005] The present application provides an object operation method, which can realize the free movement of the target object within the adsorption range, thereby flexibly adjusting the position of the target object, improving editing accuracy and efficiency, and enhancing user experience.

[0006] In a first aspect, the present application provides an object operation method. The method can be applied to any processing device with data processing capabilities, such as a terminal. The terminal can be a desktop computer, a laptop computer, or a smart phone. Specifically, the terminal presents a target object to a user through a display interface, wherein the target object is located at an adsorption position of the display interface, the adsorption position is located in a first adsorption range, and the target object is in an adsorption state. Then, the terminal receives a moving operation request triggered by the user to move the target object. When the theoretical position of the target object after moving according to the moving operation request exceeds the first adsorption range, the terminal modifies the state of the target object to a released adsorption state, and moves the target object from the adsorption position.

[0007] In some possible implementations, when the theoretical position of the target object after moving according to the moving operation request exceeds the first adsorption range, the terminal changes the state of the target object to a released adsorption state in the following manner:

[0008] When the theoretical position of the target object after being moved according to the moving operation request exceeds the first adsorption range in the horizontal direction, the terminal modifies the state of the target object in the horizontal direction to a released adsorption state, so that the terminal can move the target object in the horizontal direction from the adsorption position;

[0009] When the theoretical position of the target object after moving according to the moving operation request exceeds the first adsorption range in the vertical direction, the terminal modifies the state of the target object in the vertical direction to a released adsorption state, so that the terminal can move the target object from the adsorption position along the vertical direction.

[0010] Thus, the terminal can compare the theoretical position of the object after it moves according to the move operation request with the first adsorption range in both horizontal and vertical directions, thereby more finely dividing the movable direction of the object according to the user's intention to move the target object, thereby improving the user experience.

[0011] In some possible implementations, the terminal modifies the state of the target object to a released adsorption state and moves the target object from the adsorption position, and further includes: when the actual position of the target object after movement exceeds the second adsorption range, the terminal modifies the state of the target object to a non-adsorption state. The second adsorption range is larger than the first adsorption range, and the center point of the second adsorption range coincides with the center point of the first adsorption range. In this way, when the target object in the non-adsorption state enters the first adsorption range again, the target object can be moved to the adsorption position by the terminal, triggering the adsorption effect again.

[0012] In some possible implementations, before the terminal presents the target object located at the adsorption position to the user through a display interface, the method also includes: the terminal sets the state of the target object outside the first adsorption range to an unadsorbed state, and then in response to the user moving the target object into the first adsorption range, the terminal moves the target object to the adsorption position and modifies the state of the target object to the adsorption state.

[0013] Specifically, the terminal can obtain the position of the adsorption reference point in the display interface, and the adsorption reference point is the center point of the first adsorption range. Then, when the user moves the target object horizontally into the first adsorption range, the terminal responds to the user operation and moves the target object to the adsorption position, wherein the adsorption position and the adsorption reference point have the same coordinates in the horizontal direction; or, when the user moves the target object vertically into the first adsorption range, the terminal responds to the user operation and moves the target object to the adsorption position, wherein the adsorption position and the adsorption reference point have the same coordinates in the vertical direction.

[0014] In this way, the terminal can compare the moving target object with the adsorption reference point and the first adsorption range in the horizontal and vertical directions respectively, so as to more finely divide the position to which the target object should be adsorbed. For example, the target object can be locked in the horizontal direction and move freely in the vertical direction, so as to realize the adsorption function in the horizontal direction while maintaining the freedom of movement of the target object in the vertical direction.

[0015] In a second aspect, the present application provides an object operation device. The device includes:

[0016] A display module, used to present the target object to the user through a display interface, wherein the target object is located at an adsorption position of the display interface and is in an adsorption state;

[0017] A communication module, used to receive a moving operation request triggered by a user, where the moving operation request is used to move a target object;

[0018] A state management module, configured to modify the state of the target object to a released adsorption state when the theoretical position of the target object after moving according to the moving operation request exceeds the first adsorption range;

[0019] The moving module is used to move the target object from the adsorption position.

[0020] In some possible implementations, the state management module is specifically used to:

[0021] When the theoretical position of the target object after being moved according to the move operation request exceeds the first adsorption range in the horizontal direction, the state of the target object in the horizontal direction is modified to a released adsorption state;

[0022] When the theoretical position of the target object after being moved according to the moving operation request exceeds the first adsorption range in the vertical direction, the state of the target object in the vertical direction is modified to a released adsorption state.

[0023] In some possible implementations, the state management module is further used to:

[0024] When the actual position of the target object after moving exceeds the second adsorption range, the state of the target object is modified to a non-adsorption state, wherein the second adsorption range is larger than the first adsorption range, and the center point of the second adsorption range coincides with the center point of the first adsorption range.

[0025] In some possible implementations, the state management module 406 is further configured to:

[0026] Get the positions of the first adsorption range and the second adsorption range on the display interface.

[0027] In some possible implementations, before the terminal presents the target object located at the adsorption position to the user through the display interface, the state management module is further configured to:

[0028] The state of the target object outside the first adsorption range is set to a non-adsorption state, and then in response to the user moving the target object into the first adsorption range, the state of the target object is modified to an adsorption state.

[0029] In response to the user moving the target object into the first adsorption range, the moving module is used to:

[0030] The position of the adsorption reference point in the display interface is obtained, and the adsorption reference point is the center point of the first adsorption range. Then, when the user moves the target object in the horizontal direction to enter the first adsorption range, in response to the user operation, the target object is moved to the adsorption position, wherein the adsorption position and the adsorption reference point have the same coordinates in the horizontal direction, or when the user moves the target object in the vertical direction to enter the first adsorption range, in response to the user operation, the target object is moved to the adsorption position, wherein the adsorption position and the adsorption reference point have the same coordinates in the vertical direction.

[0031] In a third aspect, the present application provides a device, wherein the device includes a processor and a memory.

[0032] The processor is used to execute instructions stored in the memory, so that the device performs the object operation method as described in the first aspect or any implementation manner of the first aspect.

[0033] In a fourth aspect, the present application provides a computer-readable storage medium. The computer-readable storage medium includes instructions, which, when executed on a device, enable the device to execute the object operation method as described in the first aspect or any implementation of the first aspect.

[0034] In a fifth aspect, the present application provides a computer program product comprising instructions, which, when executed on a device, enables the device to execute the object operation method described in the first aspect or any one of the implementations of the first aspect.

[0035] Based on the implementations provided in the above aspects, this application can also be further combined to provide more implementations.

[0036] It can be seen from the above technical solutions that the embodiments of the present application have at least the following advantages:

[0037] On the one hand, the method realizes the release of adsorption by setting the adsorption state, and realizes the free movement of the target object within the adsorption range, so that the position of the target object can be flexibly adjusted to improve the editing accuracy and efficiency; on the other hand, the method realizes the smooth movement of the target object by releasing the adsorption state when the theoretical position of the target object exceeds the first adsorption range, and moving the target object from the adsorption position, thereby avoiding the target object from jumping from the adsorption position to outside the adsorption range. In addition, the method of the embodiment of the present application sets a second adsorption range, and when the actual position of the target object after movement exceeds the second adsorption range, the state of the target object is modified to a non-adsorbed state, so that the target object in the non-adsorbed state can trigger the adsorption effect when it enters the first adsorption range again, thereby improving the recoverability and fault tolerance of the method. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0039] Figure 1 A flowchart of an object operation method disclosed in an embodiment of the present application;

[0040] Figure 2 A schematic diagram of a method for moving a target object in an adsorption position disclosed in an embodiment of the present application;

[0041] Figure 3 A schematic diagram of another method for moving a target object in an adsorption position disclosed in an embodiment of the present application;

[0042] Figure 4 A schematic diagram of another method for moving a target object in an adsorption position disclosed in an embodiment of the present application;

[0043] Figure 5 A schematic diagram of another method for moving a target object in an adsorption position disclosed in an embodiment of the present application;

[0044] Figure 6 A schematic diagram of a method for moving a target object to an adsorption position disclosed in an embodiment of the present application;

[0045] Figure 7 A schematic diagram of another method for moving a target object to an adsorption position disclosed in an embodiment of the present application;

[0046] Figure 8 A schematic diagram of the structure of an object operating device disclosed in an embodiment of the present application. DETAILED DESCRIPTION

[0047] The scheme in the embodiment provided in this application will be described below in conjunction with the drawings in this application.

[0048] The terms used in the following embodiments are only for the purpose of describing specific embodiments and are not intended to be limiting of the present application. The terms "first" and "second" in the embodiments of the present application are only used for descriptive purposes and cannot be understood as indicating or implying relative importance, operation time sequence, or implicitly indicating the number of indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features.

[0049] In order to facilitate understanding of the technical solution of the present application, some technical terms involved in the present application are first introduced.

[0050] In this application, objects refer to various elements in a graphical user interface (GUI), which may include buttons, icons, text boxes, lists, menus, images, videos, etc. Users can move objects by interacting with the terminal, for example, by dragging and dropping to change the position of the object. In this way, the terminal can realize user needs and system functions in a visual way, thereby improving the user experience.

[0051] When interacting with the terminal, the user can operate through the input device, and then the terminal responds to the user's operation and acts on the selected object. The input device can be at least one of a mouse, a stylus, and a finger, which is used to input data and instructions to the terminal. For example, when the terminal provides a touch screen, the terminal can respond to the user's finger dragging the target object and move the object along the dragging path of the user's finger.

[0052] Considering the accuracy of user operations, current object operations often require a set of auxiliary functions to facilitate user editing, such as the automatic alignment function of objects in the interface. Among them, the adsorption function, as an important manifestation of the automatic alignment function, can directly move the target object to the position to be adsorbed when it moves into the adsorption range, thereby significantly improving the accuracy and efficiency of the operation.

[0053] However, when implementing the adsorption function, the current method often determines whether the object is within the adsorption range by calculating the distance between the center point of the object and the adsorption position. When the object is within the adsorption range, the object is directly moved to the adsorption position. When the object is not within the adsorption range, the object is directly moved out of the adsorption range. As a result, the current adsorption function cannot achieve fine-tuning of the position of the target object within the adsorption range, making the position adjustment of the target object lack of flexibility and poor user experience.

[0054] In view of this, an embodiment of the present application provides an object operation method. The method can be applied to any processing device with data processing capabilities, including a terminal or a server. Among them, the terminal can be a desktop, a laptop or a smart phone. Specifically, the terminal presents the target object to the user through a display interface, wherein the target object is located at an adsorption position of the display interface, and the target object is in an adsorption state. Then, the terminal receives a moving operation request triggered by the user to move the target object. When the theoretical position of the target object after moving according to the moving operation request exceeds the first adsorption range, the terminal modifies the state of the target object to a released adsorption state, and moves the target object from the adsorption position.

[0055] On the one hand, this method realizes adsorption release by setting the adsorption state, thereby realizing the free movement of the target object within the adsorption range, so that the position of the target object can be flexibly adjusted to improve editing accuracy and efficiency; on the other hand, this method realizes smooth movement of the target object by releasing the adsorption state when the theoretical position of the target object exceeds the first adsorption range and moving the target object from the adsorption position, thereby avoiding the target object from jumping from the adsorption position to outside the adsorption range.

[0056] Next, the object operation method provided in the embodiment of the present application will be introduced in conjunction with the drawings.

[0057] See also Figure 1 This is a flowchart of an object operation method disclosed in an embodiment of the present application, the method comprising:

[0058] S102: The terminal presents the target object to the user through a display interface.

[0059] The target object refers to any element that is selected and operated in the Graphical User Interface (GUI), which may include buttons, icons, text boxes, lists, menus, images, videos, etc. The target object may be an object that comes with the terminal system, or an object that the user obtains and stores from other channels.

[0060] The terminal presents one or more objects to the user through a display interface, so that the user can select one or more objects from these objects as target objects and perform operations on the target objects.

[0061] The target object presented by the terminal to the user is located at an adsorption position of the display interface, the adsorption position is located in a first adsorption range, and the target object is in an adsorption state.

[0062] The first adsorption range refers to the range obtained by the terminal to determine whether the target object should be moved to the adsorption position. In other words, when the state of the target object is not the released adsorption state, it will be locked in the adsorption position when it is moved to the first adsorption range. It should be noted that this application does not limit how the terminal obtains the first adsorption range, nor does it limit the setting method of the first adsorption range. The following example is only a possible setting method of the first adsorption range. In actual application, those skilled in the art should select an appropriate setting method according to actual conditions.

[0063] S104: The terminal receives a mobile operation request triggered by the user.

[0064] The terminal may receive a mobile operation request triggered by a user through an input device. Specifically, for a mobile terminal, the input device may be a finger or a stylus, and the user may trigger the mobile operation request by touching and clicking. For a non-mobile terminal, such as a desktop computer, the user may trigger the mobile operation request by clicking the mouse.

[0065] S106: When the theoretical position of the target object after being moved according to the moving operation request exceeds the first adsorption range, the terminal changes the state of the target object to a released adsorption state, and moves the target object from the adsorption position.

[0066] When the user triggers a move operation request through an input device and attempts to move the target object, the theoretical position of the target object after moving will be generated. Figure 2 As shown in the figure, the dotted line indicates that the target object cannot actually move to this position. When the theoretical position of the target object after moving does not exceed the first adsorption range, the target object will be locked in the adsorption position, and the state of the target object is adsorption state. Figure 3 In the embodiment, in response to the theoretical position of the target object after movement exceeding the first adsorption range, the terminal may modify the state of the target object to a released adsorption state, and move the target object from the adsorption position.

[0067] In some possible implementations, the terminal may modify the state of the target object and move the target object in both horizontal and vertical directions according to the theoretical position of the target object after it is moved.

[0068] like Figure 4As shown, the dotted line indicates that the target object cannot actually be moved to this position. The target object located at the theoretical position 2 after the move will be locked in the adsorption position, and the target object located at the theoretical position 4 after the move will be able to be moved freely. When the theoretical position of the target object after moving in accordance with the moving operation request exceeds the first adsorption range in the horizontal direction, the terminal modifies the state of the target object in the horizontal direction to a released adsorption state, so that the terminal can move the target object horizontally from the adsorption position. At this time, if the target object does not exceed the first adsorption range in the vertical direction, the target object cannot move freely in the vertical direction. That is, the target object located at the theoretical position 3 after the move in the figure will be located at the theoretical position 1 after the move after the actual move.

[0069] And in Figure 5 In the figure, when the theoretical position of the target object after moving according to the moving operation request exceeds the first adsorption range in the vertical direction, the terminal changes the state of the target object in the vertical direction to the released adsorption state, so that the terminal can move the target object in the vertical direction from the adsorption position. At this time, if the target object does not exceed the first adsorption range in the horizontal direction, the target object cannot move freely in the horizontal direction. That is, the target object located at the theoretical position 6 after moving in the figure will be located at the theoretical position 5 after the actual move.

[0070] Thus, the terminal can compare the theoretical position of the object after it moves according to the move operation request with the first adsorption range in both horizontal and vertical directions, thereby more finely dividing the movable direction of the object according to the user's intention to move the target object, thereby improving the user experience.

[0071] Based on the above description, an embodiment of the present application provides an object operation method, which, on the one hand, realizes adsorption release by setting the adsorption state, thereby realizing the free movement of the target object within the adsorption range, thereby flexibly adjusting the position of the target object and improving editing accuracy and efficiency; on the other hand, by moving the target object from the adsorption position when the adsorption is released, smooth movement of the target object can be realized, thereby avoiding the target object from jumping from the adsorption position to outside the adsorption range.

[0072] Figure 1 The illustrated embodiment mainly describes in detail the process of setting the adsorption state of the target object and releasing the adsorption. In some possible implementations, the terminal may also support re-triggering the adsorption effect.

[0073] Specifically, when the actual position of the target object after moving exceeds the second adsorption range, the terminal changes the state of the target object to an unadsorbed state. In this way, when the target object in the unadsorbed state enters the first adsorption range again, the target object can be moved to the adsorption position by the terminal to trigger the adsorption effect again. Among them, the second adsorption range is acquired by the terminal, the second adsorption range is larger than the first adsorption range, and the center point of the second adsorption range coincides with the center point of the first adsorption range. It should be noted that the present application does not limit how the terminal obtains the second adsorption range. For example, the terminal can obtain the second adsorption range in response to a user input operation, or it can obtain the second adsorption range through other means.

[0074] In this way, the method of the embodiment of the present application obtains the second adsorption range, and when the actual position of the target object after moving exceeds the second adsorption range, the state of the target object is modified to an unadsorbed state, so that the target object in the unadsorbed state can trigger the adsorption effect when entering the first adsorption range again, thereby improving the recoverability and fault tolerance of the method.

[0075] The above embodiment mainly provides a detailed introduction to the method of moving the target object that is already in the adsorption position. In some possible implementations, before the terminal presents the target object at the adsorption position to the user through the display interface, the terminal can also support moving the target object to the adsorption position.

[0076] The terminal may set the state of the target object outside the first adsorption range to a non-adsorption state, and then in response to the user moving the target object into the first adsorption range, the terminal moves the target object to an adsorption position and changes the state of the target object to an adsorption state.

[0077] Specifically, in response to the user moving the target object into the first adsorption range, the terminal moves the target object to the adsorption position in the following manner:

[0078] First, the terminal can obtain the position of the adsorption reference point in the display interface, where the adsorption reference point is the center point of the first adsorption range. Figure 6 and Figure 7 In the scenario shown, the adsorption reference point is the center point of the reference object O in the figure, and the user hopes to align the target object with the object to complete the typesetting task. Figure 6 As shown in FIG. 1 , when the target object being moved by the user enters the first adsorption range in the horizontal direction, the terminal can move the target object to the adsorption position, where the adsorption position and the adsorption reference point have the same coordinates in the horizontal direction, and the target object can move freely in the vertical direction. Figure 7As shown, when the target object being moved by the user enters the first adsorption range in the vertical direction, the terminal moves the target object to the adsorption position, where the adsorption position has the same coordinates as the adsorption reference point in the vertical direction, and the target object can move freely in the horizontal direction. When the target object being moved by the user enters the first adsorption range in both the horizontal and vertical directions, the terminal moves the target object to the position of the reference object O.

[0079] In this way, the terminal can determine whether the target object should be moved to the corresponding adsorption position in both the horizontal and vertical directions, thereby giving the user more choices, improving the flexibility of the adsorption function, and enhancing the user experience.

[0080] The object operation method provided in the embodiment of the present application is introduced in detail above. Next, the object operation device and equipment provided in the embodiment of the present application will be introduced in conjunction with the accompanying drawings.

[0081] See also Figure 8 An object operation device 400 is shown. The device comprises:

[0082] A display module 402 is used to present the target object to the user through a display interface, wherein the target object is located at an adsorption position of the display interface and is in an adsorption state;

[0083] The communication module 404 is used to receive a moving operation request triggered by a user, where the moving operation request is used to move a target object;

[0084] A state management module 406, configured to modify the state of the target object to a released adsorption state when the theoretical position of the target object after moving according to the moving operation request exceeds the first adsorption range;

[0085] The moving module 408 is used to move the target object from the adsorption position.

[0086] In some possible implementations, the state management module 406 is specifically used to:

[0087] When the theoretical position of the target object after being moved according to the move operation request exceeds the first adsorption range in the horizontal direction, the state of the target object in the horizontal direction is modified to a released adsorption state;

[0088] When the theoretical position of the target object after being moved according to the moving operation request exceeds the first adsorption range in the vertical direction, the state of the target object in the vertical direction is modified to a released adsorption state.

[0089] In some possible implementations, the state management module 406 is further configured to:

[0090] When the actual position of the target object after moving exceeds the second adsorption range, the state of the target object is changed to a non-adsorbed state.

[0091] In some possible implementations, the state management module 406 is further configured to:

[0092] Get the positions of the first adsorption range and the second adsorption range on the display interface.

[0093] In some possible implementations, before the terminal presents the target object located at the adsorption position to the user through the display interface, the state management module 406 is further configured to:

[0094] The state of the target object outside the first adsorption range is set to a non-adsorption state, and then in response to the user moving the target object into the first adsorption range, the state of the target object is modified to an adsorption state.

[0095] In response to the user moving the target object into the first adsorption range, when the target object is moved to the adsorbed position, the moving module 408 is used to:

[0096] The position of the adsorption reference point in the display interface is obtained, and the adsorption reference point is the center point of the first adsorption range. Then, when the user moves the target object in the horizontal direction to enter the first adsorption range, in response to the user operation, the target object is moved to the adsorption position, wherein the adsorption position and the adsorption reference point have the same coordinates in the horizontal direction; or, when the user moves the target object in the vertical direction to enter the first adsorption range, in response to the user operation, the target object is moved to the adsorption position, wherein the adsorption position and the adsorption reference point have the same coordinates in the vertical direction.

[0097] The present application provides a device for implementing an object operation method. The device includes a processor and a memory. The processor and the memory communicate with each other. The processor is used to execute instructions stored in the memory so that the device executes the object operation method.

[0098] The present application provides a computer-readable storage medium, wherein instructions are stored in the computer-readable storage medium, and when the computer-readable storage medium is executed on a device, the device executes the above-mentioned object operation method.

[0099] The present application provides a computer program product including instructions, which, when executed on a device, enables the device to execute the object operation method described above.

[0100] It should also be noted that the device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed over multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, in the drawings of the device embodiments provided by the present application, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines.

[0101] Through the description of the above implementation methods, the technicians in the relevant field can clearly understand that the present application can be implemented by means of software plus necessary general hardware, and of course, it can also be implemented by special hardware including special integrated circuits, special CPUs, special memories, special components, etc. In general, all functions completed by computer programs can be easily implemented by corresponding hardware, and the specific hardware structures used to implement the same function can also be various, such as analog circuits, digital circuits or special circuits. However, for the present application, software program implementation is a better implementation method in more cases. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a readable storage medium, such as a computer floppy disk, U disk, mobile hard disk, ROM, RAM, disk or optical disk, etc., including a number of instructions to enable a computer device (which can be a personal computer, training equipment, or network equipment, etc.) to execute the methods described in each embodiment of the present application.

[0102] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware or any combination thereof. When implemented by software, all or part of the embodiments may be implemented in the form of a computer program product.

[0103] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website, computer, training equipment, or data center to another website, computer, training equipment, or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a training device, data center, etc. that includes one or more available media integrated. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)).

[0104] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. An object operation method, characterized in that: The method comprises: Presenting a target object to a user through a display interface, wherein the target object is located at an adsorption position of the display interface, the adsorption position is located in a first adsorption range, and the target object is in an adsorption state; receiving a move operation request triggered by the user, where the move operation request is used to move the target object; When the theoretical position of the target object after being moved according to the moving operation request exceeds the first adsorption range, the state of the target object is changed to a released adsorption state, and the target object is moved from the adsorption position; If the actual position of the target object after moving does not exceed the second adsorption range, the state of the target object is maintained in the released adsorption state, and the released adsorption state indicates that the target object is not locked in the adsorption position in the first adsorption range, the second adsorption range is larger than the first adsorption range, and the center point of the second adsorption range coincides with the center point of the first adsorption range.

2. The method according to claim 1, characterized in that When the theoretical position of the target object after moving according to the moving operation request exceeds the first adsorption range, modifying the state of the target object to a released adsorption state includes: When the theoretical position of the target object after being moved according to the moving operation request exceeds the first adsorption range in the horizontal direction, modifying the state of the target object in the horizontal direction to a released adsorption state; The moving the target object from the adsorption position includes: The target object is moved in a horizontal direction from the adsorption position.

3. The method according to claim 1, characterized in that When the theoretical position of the target object after moving according to the moving operation request exceeds the first adsorption range, modifying the state of the target object to a released adsorption state includes: When the theoretical position of the target object after being moved according to the moving operation request exceeds the first adsorption range in the vertical direction, modifying the state of the target object in the vertical direction to a released adsorption state; The moving the target object from the adsorption position includes: The target object is moved from the adsorption position along a vertical direction.

4. The method according to claim 1, characterized in that: The step of modifying the state of the target object to a released adsorption state and moving the target object from the adsorption position further includes: When the actual position of the target object after moving exceeds the second adsorption range, the state of the target object is modified to a non-adsorbed state.

5. The method according to claim 4, characterized in that The method further comprises: The positions of the first adsorption range and the second adsorption range in the display interface are obtained.

6. The method according to any one of claims 4 or 5, characterized in that Before presenting the target object to the user through the display interface, the method further includes: Setting the state of the target object outside the first adsorption range to the non-adsorption state; In response to the user moving the target object to enter the first adsorption range, the target object is moved to the adsorption position, and the state of the target object is modified to the adsorption state.

7. The method according to claim 6, characterized in that In response to the user moving the target object to enter the first adsorption range, moving the target object to the adsorption position includes: Acquire a position of an adsorption reference point in the display interface, where the adsorption reference point is a center point of the first adsorption range; In response to the user moving the target object horizontally into the first adsorption range, moving the target object to the adsorption position, where the adsorption position has the same coordinates as the adsorption reference point in the horizontal direction; Alternatively, in response to the user moving the target object to enter the first adsorption range in the vertical direction, the target object is moved to the adsorption position, and the adsorption position has the same coordinates as the adsorption reference point in the vertical direction.

8. An object operating device, characterized in that: The device comprises: A display module, used for presenting a target object to a user through a display interface, wherein the target object is located at an adsorption position of the display interface, the adsorption position is located in a first adsorption range, and the target object is in an adsorption state; A communication module, configured to receive a moving operation request triggered by the user, wherein the moving operation request is used to move the target object; A state management module, configured to modify the state of the target object to a released adsorption state when the theoretical position of the target object after moving according to the movement operation request exceeds the first adsorption range; The state management module is further configured to maintain the state of the target object in the de-adsorption state if the actual position of the target object after moving does not exceed the second adsorption range, the de-adsorption state indicating that the target object is not locked in the adsorption position in the first adsorption range, the second adsorption range is larger than the first adsorption range, and the center point of the second adsorption range coincides with the center point of the first adsorption range; The moving module is used to move the target object from the adsorption position.

9. A computer device, characterized in that: The computer equipment comprises: Memory for storing computer programs or computer instructions; A processor, configured to execute a computer program or computer instruction stored in the memory, so that the computer device executes the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium is used to store a computer program, and when the computer program is executed, it is used to implement the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Sticker processing method and device

    CN113496533A

  • Service circulation method and device

    CN118535110A