WO2018103410A1 - 终端的触摸操作控制方法、终端和计算机可读存储介质 - Google Patents

终端的触摸操作控制方法、终端和计算机可读存储介质 Download PDF

Info

Publication number
WO2018103410A1
WO2018103410A1 PCT/CN2017/102558 CN2017102558W WO2018103410A1 WO 2018103410 A1 WO2018103410 A1 WO 2018103410A1 CN 2017102558 W CN2017102558 W CN 2017102558W WO 2018103410 A1 WO2018103410 A1 WO 2018103410A1
Authority
WO
WIPO (PCT)
Prior art keywords
touch
occurs
event
preset
invalid area
Prior art date
Application number
PCT/CN2017/102558
Other languages
English (en)
French (fr)
Inventor
潘腾蛟
Original Assignee
广东欧珀移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 广东欧珀移动通信有限公司 filed Critical 广东欧珀移动通信有限公司
Publication of WO2018103410A1 publication Critical patent/WO2018103410A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0414Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means using force sensing means to determine a position
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range

Definitions

  • the present application relates to the field of computer technologies, and in particular, to a touch operation control method for a terminal, a terminal, and a computer readable storage medium.
  • a touch operation control method a terminal, and a computer readable storage medium of a terminal are provided.
  • a touch operation control method for a terminal comprising:
  • a terminal includes a memory and a processor, wherein the memory stores computer readable instructions, and when the instructions are executed by the processor, the processor performs the following steps:
  • One or more non-transitory computer readable storage media containing computer executable instructions that, when executed by one or more processors, cause the processor to perform the following steps:
  • 1 is an internal structural diagram of a terminal in an embodiment
  • FIG. 2 is a flowchart of a touch operation control method of a terminal in an embodiment
  • FIG. 3 is a flowchart of a touch operation control method of a terminal in another embodiment
  • FIG. 4 is a flowchart of a touch operation control method of a terminal in still another embodiment
  • FIG. 5 is a flowchart of a touch operation control method of a terminal in still another embodiment
  • FIG. 6 is a flowchart of a touch operation control method of a terminal in another embodiment
  • FIG. 7 is a structural block diagram of a touch operation control device of a terminal in an embodiment
  • FIG. 8 is a structural block diagram of a touch operation control device of a terminal in another embodiment
  • Fig. 9 is a block diagram showing the structure of a touch operation control device of a terminal in still another embodiment.
  • FIG. 1 is a schematic diagram showing the internal structure of a terminal in an embodiment.
  • the terminal includes a processor connected through a system bus, a non-volatile storage medium, a network interface, an internal memory, and an input device.
  • the non-volatile storage medium of the terminal stores an operating system, and further includes a touch operation control device of the terminal, and the touch operation control device of the terminal is used to implement a touch operation control method of the terminal.
  • the processor is used to provide computing and control capabilities to support the operation of the entire terminal.
  • the internal memory in the terminal provides an environment for the operation of the touch operation control device in the non-volatile storage medium, and the network interface is used for communication with the server or other terminals, such as when the terminal responds to the click operation, a control command can be generated and sent to the server or the like. Terminal, etc.
  • the input device is a touch screen.
  • the touch operation control device of the terminal can receive a touch press event acting on the touch screen, detecting whether a touch lift event occurs when a touch press event occurs, and if a touch lift event occurs and a touch lift event occurs If the location is in the preset invalid area, it indicates that the user wants to repent this click operation after pressing on the touch screen, and then the touch lift event needs to be discarded, so that the click operation is not responded.
  • the terminal includes, but is not limited to, various all-in-one computers with touch screens, smart phones, tablet computers, and portable wearable devices.
  • a touch operation control method of a terminal is provided.
  • the method is illustrated by being applied to a terminal with a touch screen, including:
  • Step 202 Detect whether a touch press event is touched.
  • the terminal detects whether there is a touch press event that acts on the touch screen.
  • Step 204 detecting whether a touch lift event occurs when a touch press event occurs.
  • the terminal When the terminal detects that a touch press event occurs, the monitoring of the touch lift event is turned on, and when the user leaves the touch screen with a finger or a touch screen, the terminal detects a touch lift event.
  • Step 206 When a touch lift event occurs, it is detected whether the position where the touch lift event occurs is within the preset invalid area, and if so, the touch lift event is discarded.
  • the terminal When detecting the touch lifting event, the terminal acquires a position where the touch lifting event occurs, and the position may be a coordinate of the contact on the touch screen when the touch screen lifting event occurs, and determining whether the position of the touch lifting event occurs according to the coordinate In the default invalid area.
  • the pre-selected invalid area is a specific area on the touch screen that is preset, and the specific area can be used to cancel the click operation generated on the touch screen.
  • the preset invalid area may include an edge area in the display area of the touch screen in which the edge of the display area is a preset width; and/or a central position area in the display area of the touch screen set in advance. It should be noted that the preset invalid area is not limited to the two areas shown in FIG. 3, and may be set in other areas on the touch screen, for example, the upper left corner and the upper right corner of the touch screen are set as invalid areas.
  • the terminal if the terminal detects that the location of the touch lift event is within the preset invalid area, the terminal discards the touch lift event.
  • the touch lift event may occur in the preset invalid area by moving the contact to the preset invalid area, and the click operation will not be responded to.
  • the touch operation of the terminal has a fault tolerance mechanism, which improves the flexibility of user operation.
  • a touch operation control method for a terminal is provided, which is applied to a terminal with a touch screen for example, and includes:
  • Step 302 Detect whether a touch press event occurs, and if yes, proceed to step 304, otherwise no processing is performed.
  • Step 304 detecting whether a touch lift event occurs, and if yes, proceeding to step 306, otherwise not For processing.
  • Step 306 detecting whether the location where the touch lift event occurs is within the preset invalid area, and if yes, proceeding to step 308, otherwise proceeding to step 312.
  • Step 308 Acquire a movement trajectory of the touch point, determine whether the movement trajectory satisfies the preset trajectory condition, and if yes, proceed to step 310, otherwise proceed to step 312.
  • step 310 the touch lift event is discarded.
  • Step 312 responding to a touch click operation.
  • the terminal detects whether there is a touch press event acting on the touch screen, and if so, starts monitoring of the touch lift event.
  • a touch lift event it is detected whether the position at which the touch lift event occurs is within the preset invalid area. If the position of the touch lift event is within the preset invalid area, it indicates that the touch point is moved to the preset invalid area after the touch is pressed.
  • the terminal may record the movement trajectory of the touch point and determine whether the movement trajectory satisfies the preset trajectory condition.
  • the preset trajectory conditions may be preset with some specific trajectories, such as an S-shaped trajectory and a linear trajectory.
  • the movement trajectory of the touch point can be compared with the preset trajectory, and if the two are consistent, it is determined that the movement trajectory satisfies the preset trajectory condition. If the movement trajectory satisfies the preset trajectory condition, the touch lift event is discarded, that is, the touch click operation is not responded. In this embodiment, if the location where the touch lift event occurs is not in the preset invalid area, or the position where the touch lift event occurs is within the preset invalid area but the movement trajectory of the touch point does not satisfy the preset trajectory condition, responding to the touch Click on the action.
  • the contact when the user presses on the touch screen, if the user wants to repent this operation, the contact may be moved to the preset invalid area according to the preset trajectory condition, and the touch lifting occurs in the preset invalid area.
  • the event does not respond to the click operation, so that the touch operation of the terminal has a fault tolerance mechanism, which improves the flexibility of the user operation.
  • a touch operation control method for a terminal is provided, which is applied to a terminal with a touch screen for example, and includes:
  • Step 402 Detect whether a touch press event occurs, and if yes, proceed to step 404, otherwise no processing is performed.
  • Step 404 detecting whether a touch lift event occurs, and if yes, proceeding to step 406, otherwise not For processing.
  • Step 406 Detect whether the location where the touch lift event occurs is within the preset invalid area, and if yes, proceed to step 408, otherwise proceed to step 412.
  • Step 408 Detect whether the pressure value generated in the invalid area exceeds the preset pressure threshold, and if yes, proceed to step 410, otherwise proceed to step 412.
  • step 410 the touch lift event is discarded.
  • Step 412 responding to a touch click operation.
  • the terminal may be provided with a pressure sensor to detect the pressure value generated on the touch screen after detecting a touch press event. Specifically, the detected pressure value can be recorded every preset time. When the terminal detects that the location where the touch lifting event occurs is in the preset invalid area, it detects whether the recently recorded pressure value exceeds the preset pressure threshold, and if so, it indicates that the touch click operation is cancelled after pressing. Discard the touch lift event. If the terminal detects that the location where the touch lift event occurs is not in the preset invalid area, or the position where the touch lift event occurs is within the preset invalid area but the detected pressure value does not reach the preset pressure threshold, responding to the touch click operation .
  • the touch operation of the terminal has a fault tolerance mechanism, which improves the flexibility of user operation.
  • a touch operation control method for a terminal is provided, which is applied to a terminal with a touch screen for example, and includes:
  • Step 502 detecting whether a touch press event occurs, and if yes, proceeding to step 504, otherwise no processing is performed.
  • Step 504 detecting whether a touch lift event occurs, and if yes, proceeding to step 506, otherwise no processing is performed.
  • Step 506 Detect whether the location where the touch lift event occurs is within the preset invalid area, and if yes, proceed to step 508, otherwise proceed to step 512.
  • Step 508 Acquire a moving track of the touch point, and determine whether the moving track meets the preset track bar. And if the pressure value generated in the invalid area exceeds the preset pressure threshold, if yes, go to step 510, otherwise go to step 512.
  • step 510 the touch lift event is discarded.
  • Step 512 responding to a touch click operation.
  • the touch operation of the terminal has a fault tolerance mechanism, which improves the flexibility of user operation.
  • detecting whether a touch lift event occurs when a touch lift event occurs, detecting whether a position where the touch lift event occurs is within a preset invalid area, and if so, discarding the touch lift
  • the event includes: detecting whether a touch press event of the second contact occurs when a touch press event of the first contact occurs, and if yes, determining whether a touch press event of the second contact occurs in the preset invalid area If the touch press event of the second contact occurs in the preset invalid area, detecting whether a touch lift event of two contacts occurs, and when a touch lift event of two contacts occurs, detecting the second Whether the touch lift event of the contact occurs in the preset invalid area, and if so, the touch lift event of the first contact is discarded.
  • a touch operation control method for a terminal is provided, which is applied to a terminal with a touch screen for example, and includes:
  • Step 602 Detect whether a touch press event of the first contact occurs.
  • the user can click the touch screen of the terminal by using a finger or a stylus, and the terminal acquires a touch press event, which is a touch press event of the first contact.
  • Step 604 detecting whether a touch press event of the second contact occurs when a touch press event of the first touch point occurs.
  • Step 606 Determine whether the touch press event of the second contact is within the preset invalid area when a touch press event of the second contact occurs.
  • Step 608 if the touch press event of the second contact is in the preset invalid area, detecting whether A touch lift event of two contacts has occurred.
  • Step 610 When a touch lift event of two contacts occurs, detecting whether a touch lift event of the second contact occurs in the preset invalid area, and if so, discarding the touch lift event of the first contact.
  • steps in the method flowchart of the embodiment of the present application are sequentially displayed in accordance with the indication of the arrow, but the steps are not necessarily performed in the order indicated by the arrow. Except as explicitly stated herein, the execution of these steps is not strictly limited, and may be performed in other sequences. Moreover, at least some of the steps in the method flowchart of the embodiment of the present application may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be executed at different times. The order of execution is not necessarily performed sequentially, but may be performed alternately or alternately with at least a portion of other steps or sub-steps or stages of other steps.
  • a touch operation control apparatus for a terminal including a first event detection module 702, a second event detection module 704, a position detection module 706, and an event response module 708, wherein:
  • the first event detecting module 702 is configured to detect whether a touch press event occurs.
  • the second event detection module 704 is configured to detect whether a touch lift event occurs when a touch press event occurs.
  • the position detecting module 706 is configured to detect whether a position at which a touch lift event occurs is within a preset invalid area when a touch lift event occurs.
  • the event response module 708 is configured to discard the touch lift event if the location at which the touch lift event occurs is within the preset invalid region.
  • the preset invalid area may include a preset edge area in the display area of the touch screen in which the edge of the display area is a preset width; and/or a central position in the display area of the touch screen set in advance region.
  • the touch lift event may occur in the preset invalid area by moving the contact to the preset invalid area, and
  • the touch operation of the terminal has a fault tolerance mechanism, which improves the flexibility of user operation.
  • the touch operation control device of the terminal further includes: a trajectory detection module 710, configured to acquire a movement trajectory of the touch point if the position where the touch lift event occurs is within the preset invalid area And determining whether the moving track meets the preset trajectory condition.
  • the event response module 708 is further configured to discard the touch lift event if the moving trajectory satisfies the preset trajectory condition.
  • the operation control device of the terminal further includes: a pressure detecting module 712, configured to detect in the preset invalid area if the position where the touch lifting event occurs is within the preset invalid area Whether the generated pressure value exceeds a preset pressure threshold.
  • the event response module 708 is further configured to discard the touch lift event if the pressure value exceeds the preset pressure threshold.
  • the position detecting module 706 is configured to detect whether a touch press event of the second contact occurs when a touch press event of the first contact occurs, and if yes, determine a touch press event of the second contact Whether it occurs in the preset invalid area; if the touch press event of the second contact occurs in the preset invalid area, it is detected whether a touch lift event of two contacts occurs, when the touch of two contacts occurs When the event occurs, it is detected whether the touch lift event of the second contact occurs in the preset invalid area.
  • the event response module 708 is further configured to discard the touch lift event of the first contact if the ⁇ lift event of the second contact occurs in the preset invalid area.
  • the respective modules in the touch operation control device of the above terminal may be implemented in whole or in part by software, hardware, and a combination thereof.
  • the above modules may be embedded in the hardware in the processor or in the memory in the server, or may be stored in the memory in the server, so that the processor calls the corresponding operations of the above modules.
  • the terms "component”, “module” "Block” and “system” and the like are intended to mean a computer-related entity, which may be hardware, a combination of hardware and software, software, or software in execution.
  • a component may be, but is not limited to, run on a processor Process, processor, object, executable code, thread of execution, program, and/or computer.
  • both an application running on a server and a server can be a component.
  • One or more components can reside in a process and/or Or threads of execution, and components may be located within one computer and/or distributed between two or more computers.
  • the embodiment of the present application also provides a computer readable storage medium.
  • One or more non-transitory computer readable storage media containing computer executable instructions that, when executed by one or more processors, cause the processor to perform a touch of the terminal as described above Operation control method.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or the like.

Landscapes

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

Abstract

一种终端的触摸操作控制方法,包括:检测是否发生触摸按下事件;当发生所述触摸按下事件时检测是否发生触摸抬起事件;当发生触摸抬起事件时,检测发生所述触摸抬起事件的位置是否在预设无效区域内,若是,则丢弃所述触摸抬起事件。

Description

终端的触摸操作控制方法、终端和计算机可读存储介质
相关申请的交叉引用
本申请要求于2016年12月05日提交中国专利局、申请号为201611101792.7、发明名称为“终端的触摸操作控制方法和装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及计算机技术领域,特别是涉及一种终端的触摸操作控制方法、终端和计算机可读存储介质。
背景技术
随着通信技术的发展,各种智能终端已成为人们工作、生活、娱乐最常用的工具之一。用户使用带触摸屏的终端每天会进行很多操作,例如在触摸屏上点击、滑动等操作。对于带触摸屏的终端上的触摸点击操作,通常都是在获取到按下事件以及相应的抬起事件后才进行响应。然而,用户有时候在触摸屏上按下后会希望取消当前这个点击动作,此时如果用户取消按下又必然会产生抬起事件因而还是会响应该点击动作。例如,当用户使用终端浏览网页时,经常会自动弹出一些广告,用户本来想点击网页中的某张图片,在手指点下的一瞬间弹出了一个下载应用的广告,如果用户手指立刻离开触摸屏,则会打开广告下载应用,从而导致流量的损失。
发明内容
根据本申请的各种实施例,提供一种终端的触摸操作控制方法、终端和计算机可读存储介质。
一种终端的触摸操作控制方法,包括:
检测是否发生触摸按下事件;
当发生所述触摸按下事件时检测是否发生触摸抬起事件;及
当发生触摸抬起事件时,检测发生所述触摸抬起事件的位置是否在预设无效区域内,若是,则丢弃所述触摸抬起事件。
一种终端,包括存储器及处理器,所述存储器中储存有计算机可读指令,所述指令被所述处理器执行时,使得所述处理器执行如下步骤:
检测是否发生触摸按下事件;
当发生所述触摸按下事件时检测是否发生触摸抬起事件;及
当发生触摸抬起事件时,检测发生所述触摸抬起事件的位置是否在预设无效区域内,若是,则丢弃所述触摸抬起事件。
一个或多个包含计算机可执行指令的非易失性计算机可读存储介质,当所述计算机可执行指令被一个或多个处理器执行时,使得所述处理器执行如下步骤:
检测是否发生触摸按下事件;
当发生所述触摸按下事件时检测是否发生触摸抬起事件;及
当发生触摸抬起事件时,检测发生所述触摸抬起事件的位置是否在预设无效区域内,若是,则丢弃所述触摸抬起事件。
本申请的一个或多个实施例的细节在下面的附图和描述中提出。本申请的其它特征、目的和优点将从说明书、附图以及权利要求书变得明显。
附图说明
为了更好地描述和说明这里公开的那些发明的实施例和/或示例,可以参考一幅或多幅附图。用于描述附图的附加细节或示例不应当被认为是对所公开的发明、目前描述的实施例和/或示例以及目前理解的这些发明的最佳模式中的任何一者的范围的限制。
图1为一个实施例中终端的内部结构图;
图2为一个实施例中终端的触摸操作控制方法的流程图;
图3为另一个实施例中终端的触摸操作控制方法的流程图;
图4为再一个实施例中终端的触摸操作控制方法的流程图;
图5为又一个实施例中终端的触摸操作控制方法的流程图;
图6为另一个实施例中终端的触摸操作控制方法的流程图;
图7为一个实施例中终端的触摸操作控制装置的结构框图;
图8为另一个实施例中终端的触摸操作控制装置的结构框图;
图9为又一个实施例中终端的触摸操作控制装置的结构框图。
具体实施方式
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。
图1为一个实施例中终端的内部结构示意图。该终端包括通过系统总线连接的处理器、非易失性存储介质、网络接口、内存储器、输入装置。其中该终端的非易失性存储介质存储有操作系统,还包括一种终端的触摸操作控制装置,该终端的触摸操作控制装置用于实现一种终端的触摸操作控制方法。该处理器用于提供计算和控制能力,支撑整个终端的运行。终端中的内存储器为非易失性存储介质中的触摸操作控制装置的运行提供环境,网络接口用于与服务器或者其他终端进行通信,如当终端响应点击操作可以产生控制命令发送到服务器或者其他终端等。输入装置为触摸屏。具体的,终端的触摸操作控制装置可接收到作用于触摸屏上的触摸按下事件,当发生触摸按下事件时检测是否发生触摸抬起事件,如果发生触摸抬起事件且发生触摸抬起事件的位置是在预设无效区域内,则表明用户在触摸屏上按下之后又希望反悔本次点击操作,则需要丢弃触摸抬起事件,使得不响应点击操作。其中,终端包括但不限于各种带触摸屏的一体机、智能手机、平板电脑和便携式可穿戴设备等。
如图2所示,在一个实施例中,提供了一种终端的触摸操作控制方法, 该方法以应用于带触摸屏的终端中进行举例说明,包括:
步骤202,检测是否触摸按下事件。
终端检测是否有作用于触摸屏的触摸按下事件。
步骤204,当发生触摸按下事件时检测是否发生触摸抬起事件。
当终端检测到发生触摸按下事件时,则开启触摸抬起事件的监测,当用户使用手指或者触摸屏离开触摸屏,则终端检测到触摸抬起事件。
步骤206,当发生触摸抬起事件时,检测发生触摸抬起事件的位置是否在预设无效区域内,若是,则丢弃触摸抬起事件。
终端当检测到触摸抬起事件时,则获取发生触摸抬起事件的位置,该位置可为发生触摸屏抬起事件时触点位于触摸屏上的坐标,根据该坐标判断发生触摸抬起事件的位置是否在预设无效区域内。
预选无效区域是预先设置的触摸屏上的特定区域,该特定区域可用于撤销在触摸屏上产生的点击操作。预设无效区域可包括预先设置的在触摸屏的显示区域中的距离显示区的边缘为预设宽度的边缘区域;和/或,预先设置的触摸屏的显示区域中的中心位置区域。应当说明的是,预设无效区域并不局限于图3所示的两种区域,也可以设定在触摸屏上的其他区域,例如触摸屏的左上角、右上角位置设置无效区域。
本申请实施例中,终端如果检测到触摸抬起事件的位置在预设无效区域内,则丢弃该触摸抬起事件。如此,当在触摸屏上按下时,如果用户想要反悔本次操作,可以通过将触点移动到预设无效区域,在预设无效区域内发生触摸抬起事件,则不会响应点击操作,从而使得终端的触摸操作具有容错机制,提高了用户操作的灵活性。
如图3所示,在一个实施例中,提供了一种终端的触摸操作控制方法,该方法以应用于带触摸屏的终端中进行举例说明,包括:
步骤302,检测是否发生触摸按下事件,若是,则进入步骤304,否则不作处理。
步骤304,检测是否发生触摸抬起事件,若是,则进入步骤306,否则不 作处理。
步骤306,检测发生触摸抬起事件的位置是否在预设无效区域内,若是,则进入步骤308,否则进入步骤312。
步骤308,获取触摸点的移动轨迹,判断移动轨迹是否满足预设轨迹条件,若是,则进入步骤310,否则进入步骤312。
步骤310,丢弃触摸抬起事件。
步骤312,响应触摸点击操作。
终端检测是否有作用于触摸屏的触摸按下事件,若是,则开启触摸抬起事件的监测。当检测到触摸抬起事件时,检测发生触摸抬起事件的位置是否在预设无效区域内。如果触摸抬起事件的位置在预设无效区域内,表明触摸按下后将触摸点移动到了预设无效区域中。进一步的,终端可记录触摸点的移动轨迹,判断移动轨迹是否满足预设轨迹条件。其中,预设轨迹条件可预先设定的一些特定轨迹,例如S型轨迹、直线型轨迹。具体的,可将触摸点的移动轨迹与预设轨迹进行对比,如果两者一致,则判定移动轨迹满足预设轨迹条件。如果移动轨迹满足预设轨迹条件,则丢弃该触摸抬起事件,也就是不响应触摸点击操作。本实施例中,如果发生触摸抬起事件的位置不在预设无效区域内,或者发生触摸抬起事件的位置在预设无效区域内但触摸点的移动轨迹不满足预设轨迹条件,则响应触摸点击操作。
本申请实施例中,当在触摸屏上按下时,如果用户想要反悔本次操作,可以通过将触点按照预设轨迹条件移动到预设无效区域,并在预设无效区域内发生触摸抬起事件,则不会响应点击操作,从而使得终端的触摸操作具有容错机制,提高了用户操作的灵活性。
如图4所示,在一个实施例中,提供了一种终端的触摸操作控制方法,该方法以应用于带触摸屏的终端中进行举例说明,包括:
步骤402,检测是否发生触摸按下事件,若是,则进入步骤404,否则不作处理。
步骤404,检测是否发生触摸抬起事件,若是,则进入步骤406,否则不 作处理。
步骤406,检测发生触摸抬起事件的位置是否在预设无效区域内,若是,则进入步骤408,否则进入步骤412。
步骤408,检测在无效区域内产生的压力值是否超过预设压力阈值,若是,则进入步骤410,否则进入步骤412。
步骤410,丢弃触摸抬起事件。
步骤412,响应触摸点击操作。
终端可设有压力传感器,在检测到触摸按下事件后开始检测在触摸屏上产生的压力值。具体的,可每隔预设时间记录检测到的压力值。当终端检测到发生触摸抬起事件的位置在预设无效区域内,则检测最近记录到的压力值是否超过预设压力阈值,若是,则表明按下后还希望撤销本次触摸点击操作,此时丢弃触摸抬起事件。如果终端检测到发生触摸抬起事件的位置不在预设无效区域内,或者发生触摸抬起事件的位置在预设无效区域内但检测到的压力值没有达到预设压力阈值,则响应触摸点击操作。
本申请实施例中,当在触摸屏上按下时,如果用户想要反悔本次操作,可以通过将触点移动到预设无效区域并重按预设取消区域后抬起,则不会响应点击操作,从而使得终端的触摸操作具有容错机制,提高了用户操作的灵活性。
如图5所示,在一个实施例中,提供了一种终端的触摸操作控制方法,该方法以应用于带触摸屏的终端中进行举例说明,包括:
步骤502,检测是否发生触摸按下事件,若是,则进入步骤504,否则不作处理。
步骤504,检测是否发生触摸抬起事件,若是,则进入步骤506,否则不作处理。
步骤506,检测发生触摸抬起事件的位置是否在预设无效区域内,若是,则进入步骤508,否则进入步骤512。
步骤508,获取触摸点的移动轨迹,判断移动轨迹是否满足预设轨迹条 件且在无效区域内产生的压力值是否超过预设压力阈值,若是,则进入步骤510,否则进入步骤512。
步骤510,丢弃触摸抬起事件。
步骤512,响应触摸点击操作。
当在触摸屏上按下时,如果用户想要反悔本次操作,可以通过将触点按照预设轨迹条件移动到预设无效区域并重按预设取消区域后抬起,则不会响应点击操作,从而使得终端的触摸操作具有容错机制,提高了用户操作的灵活性。
在一个实施例中,当发生触摸按下事件时检测是否发生触摸抬起事件,当发生触摸抬起事件时,检测发生触摸抬起事件的位置是否在预设无效区域内,若是则丢弃触摸抬起事件,包括:当发生第一触点的触摸按下事件时检测是否发生第二触点的触摸按下事件,若是,则判断第二触点的触摸按下事件是否发生在预设无效区域内;如果第二触点的触摸按下事件发生在预设无效区域内,则检测是否发生两个触点的触摸抬起事件,当发生两个触点的触摸抬起事件时,检测第二触点的触摸抬起事件是否发生在预设无效区域内,若是,则丢弃第一触点的触摸抬起事件。
如图6所示,在一个实施例中,提供了一种终端的触摸操作控制方法,该方法以应用于带触摸屏的终端中进行举例说明,包括:
步骤602,检测是否发生第一触点的触摸按下事件。
当想要对触摸屏进行点击操作时,用户可通过手指或者触控笔点击终端的触摸屏,终端会获取到触摸按下事件,该触摸按下事件为第一触点的触摸按下事件。
步骤604,当发生第一触摸点的触摸按下事件时检测是否发生第二触点的触摸按下事件。
步骤606,当发生第二触点的触摸按下事件时判断第二触点的触摸按下事件是否在预设无效区域内。
步骤608,若第二触点的触摸按下事件在预设无效区域内,则检测是否 发生两个触点的触摸抬起事件。
步骤610,当发生两个触点的触摸抬起事件时,检测第二触点的触摸抬起事件是否发生在预设无效区域内,若是,则丢弃第一触点的触摸抬起事件。
如果想要对本次对触摸屏的点击操作进行撤销,可在触摸按下后,通过第二触点在预设无效区域按下。然后抬起两个触点,终端检测到发生两个触点的触摸抬起事件时,会检测第二触点的触摸抬起事件是否发生在预设无效区域内,若是,则丢弃第一触点的触摸抬起事件。也就是说,当在触摸屏上按下时,如果用户想要反悔本次操作,可通过另外在预设无效区域按下,并同时抬起两个触点,则不会响应点击操作,从而使得终端的触摸操作具有容错机制,提高了用户操作的灵活性。
本申请实施例的方法流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,其可以以其他的顺序执行。而且,本申请实施例的方法流程图中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,其执行顺序也不必然是依次进行,而是可以与其他步骤或者其他步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。
如图7所示,在一个实施例中,提供了一种终端的触摸操作控制装置,包括第一事件检测模块702、第二事件检测模块704、位置检测模块706和事件响应模块708,其中:
第一事件检测模块702用于检测是否发生触摸按下事件。
第二事件检测模块704用于当发生触摸按下事件时检测是否发生触摸抬起事件。
位置检测模块706用于当发生触摸抬起事件时,检测发生触摸抬起事件的位置是否在预设无效区域内。
事件响应模块708用于如果发生触摸抬起事件的位置在预设无效区域内,则丢弃触摸抬起事件。
在一个实施例中,预设无效区域可包括预先设置的在触摸屏的显示区域中的距离显示区的边缘为预设宽度的边缘区域;和/或,预先设置的触摸屏的显示区域中的中心位置区域。
本申请实施例中,当在触摸屏上按下时,如果用户想要反悔本次操作,可以通过将触点移动到预设无效区域,在预设无效区域内发生触摸抬起事件,则不会响应点击操作,从而使得终端的触摸操作具有容错机制,提高了用户操作的灵活性。
在一个实施例中,如图8所示,终端的触摸操作控制装置还包括:轨迹检测模块710,用于如果发生触摸抬起事件的位置在预设无效区域内,则获取触摸点的移动轨迹,判断该移动轨迹是否满足预设轨迹条件。本实施例中,事件响应模块708还用于如果移动轨迹满足预设轨迹条件,则丢弃触摸抬起事件。
在一个实施例中,如图9所示,终端的操作控制装置还包括:压力检测模块712,用于如果发生触摸抬起事件的位置在预设无效区域内,则检测在预设无效区域内产生的压力值是否超过预设压力阈值。本实施例中,事件响应模块708还用于如果压力值超过预设压力阈值,则丢弃触摸抬起事件。
在一个实施例中,位置检测模块706用于当发生第一触点的触摸按下事件时检测是否发生第二触点的触摸按下事件,若是,则判断第二触点的触摸按下事件是否发生在预设无效区域内;如果第二触点的触摸按下事件发生在预设无效区域内,则检测是否发生两个触点的触摸抬起事件,当发生两个触点的触摸抬起事件时,检测第二触点的触摸抬起事件是否发生在预设无效区域内。本实施例中,事件响应模块708还用于如果第二触点的啜茗抬起事件发生在预设无效区域内,则丢弃第一触点的触摸抬起事件。
上述终端的触摸操作控制装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于服务器中的处理器中,也可以以软件形式存储于服务器中的存储器中,以便于处理器调用执行以上各个模块对应的操作。如在本申请中所使用的,术语“组件”、“模 块”和“系统”等旨在表示计算机相关的实体,它可以是硬件、硬件和软件的组合、软件、或者执行中的软件。例如,组件可以是但不限于是,在处理器上运行的进程、处理器、对象、可执行码、执行的线程、程序和/或计算机。作为说明,运行在服务器上的应用程序和服务器都可以是组件。一个或多个组件可以驻留在进程和/或执行的线程中,并且组件可以位于一个计算机内和/或分布在两个或更多的计算机之间。
本申请实施例还提供了一种计算机可读存储介质。一个或多个包含计算机可执行指令的非易失性计算机可读存储介质,当所述计算机可执行指令被一个或多个处理器执行时,使得所述处理器执行如上所述的终端的触摸操作控制方法。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一非易失性计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)等。
以上所述实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。

Claims (15)

  1. 一种终端的触摸操作控制方法,包括:
    检测是否发生触摸按下事件;
    当发生所述触摸按下事件时检测是否发生触摸抬起事件;及
    当发生触摸抬起事件时,检测发生所述触摸抬起事件的位置是否在预设无效区域内,若是,则丢弃所述触摸抬起事件。
  2. 根据权利要求1所述的方法,其特征在于,在所述检测发生触摸抬起事件的位置是否在预设无效区域内之后,还包括:
    如果发生所述触摸抬起事件的位置在预设无效区域内,则获取触摸点的移动轨迹,判断所述移动轨迹是否满足预设轨迹条件,若是,则丢弃所述触摸抬起事件。
  3. 根据权利要求1所述的方法,其特征在于,在所述检测发生触摸抬起事件的位置是否在预设无效区域内之后,还包括:
    如果发生所述触摸抬起事件的位置在预设无效区域内,则检测在所述预设无效区域内产生的压力值是否超过预设压力阈值,若是,则丢弃所述触摸抬起事件。
  4. 根据权利要求1所述的方法,其特征在于,所述当发生所述触摸按下事件时检测是否发生触摸抬起事件,当发生触摸抬起事件时,检测发生所述触摸抬起事件的位置是否在预设无效区域内,若是则丢弃所述触摸抬起事件,包括:
    当发生第一触点的触摸按下事件时检测是否发生第二触点的触摸按下事件,若是,则判断所述第二触点的触摸按下事件是否发生在所述预设无效区域内;及
    如果所述第二触点的触摸按下事件发生在所述预设无效区域内,则检测是否发生两个触点的触摸抬起事件,当发生两个触点的触摸抬起事件时,检测所述第二触点的触摸抬起事件是否发生在所述预设无效区域内,若是,则丢弃所述第一触点的触摸抬起事件。
  5. 根据权利要求1至4任意一项所述的方法,其特征在于,所述预设无效区域包括以下情况中至少一种:
    预先设置的在触摸屏的显示区域中距离显示区域的边缘为预设宽度的边缘区域;及
    预先设置的触摸屏的显示区域中的中心位置区域。
  6. 一种终端,包括存储器及处理器,所述存储器中储存有计算机可读指令,所述指令被所述处理器执行时,使得所述处理器执行如下步骤:
    检测是否发生触摸按下事件;
    当发生所述触摸按下事件时检测是否发生触摸抬起事件;及
    当发生触摸抬起事件时,检测发生所述触摸抬起事件的位置是否在预设无效区域内,若是,则丢弃所述触摸抬起事件。
  7. 根据权利要求6所述的终端,其特征在于,所述指令被所述处理器执行时,还使得所述处理器执行所述检测发生触摸抬起事件的位置是否在预设无效区域内之后,还执行:
    如果发生所述触摸抬起事件的位置在预设无效区域内,则获取触摸点的移动轨迹,判断所述移动轨迹是否满足预设轨迹条件,若是,则丢弃所述触摸抬起事件。
  8. 根据权利要求6所述的终端,其特征在于,所述指令被所述处理器执行时,还使得所述处理器执行所述检测发生触摸抬起事件的位置是否在预设无效区域内之后,还执行:
    如果发生所述触摸抬起事件的位置在预设无效区域内,则检测在所述预设无效区域内产生的压力值是否超过预设压力阈值,若是,则丢弃所述触摸抬起事件。
  9. 根据权利要求8所述的终端,其特征在于,所述当发生所述触摸按下事件时检测是否发生触摸抬起事件,当发生触摸抬起事件时,检测发生所述触摸抬起事件的位置是否在预设无效区域内,若是则丢弃所述触摸抬起事件,包括:
    当发生第一触点的触摸按下事件时检测是否发生第二触点的触摸按下事件,若是,则判断所述第二触点的触摸按下事件是否发生在所述预设无效区域内;及
    如果所述第二触点的触摸按下事件发生在所述预设无效区域内,则检测是否发生两个触点的触摸抬起事件,当发生两个触点的触摸抬起事件时,检测所述第二触点的触摸抬起事件是否发生在所述预设无效区域内,若是,则丢弃所述第一触点的触摸抬起事件。
  10. 根据权利要求6至9任意一项所述的终端,其特征在于,所述预设无效区域包括以下情况中至少一种:
    预先设置的在触摸屏的显示区域中距离显示区域的边缘为预设宽度的边缘区域;及
    预先设置的触摸屏的显示区域中的中心位置区域。
  11. 一个或多个包含计算机可执行指令的非易失性计算机可读存储介质,当所述计算机可执行指令被一个或多个处理器执行时,使得所述处理器执行如下步骤:
    检测是否发生触摸按下事件;
    当发生所述触摸按下事件时检测是否发生触摸抬起事件;及
    当发生触摸抬起事件时,检测发生所述触摸抬起事件的位置是否在预设无效区域内,若是,则丢弃所述触摸抬起事件。
  12. 根据权利要求11所述的计算机可读存储介质,其特征在于,当所述计算机可执行指令被一个或多个处理器执行时,还使得所述处理器执行所述检测发生触摸抬起事件的位置是否在预设无效区域内之后,还执行:
    如果发生所述触摸抬起事件的位置在预设无效区域内,则获取触摸点的移动轨迹,判断所述移动轨迹是否满足预设轨迹条件,若是,则丢弃所述触摸抬起事件。
  13. 根据权利要求11所述的计算机可读存储介质,其特征在于,当所述计算机可执行指令被一个或多个处理器执行时,还使得所述处理器执行所述 检测发生触摸抬起事件的位置是否在预设无效区域内之后,还执行:
    如果发生所述触摸抬起事件的位置在预设无效区域内,则检测在所述预设无效区域内产生的压力值是否超过预设压力阈值,若是,则丢弃所述触摸抬起事件。
  14. 根据权利要求11所述的计算机可读存储介质,其特征在于,所述当发生所述触摸按下事件时检测是否发生触摸抬起事件,当发生触摸抬起事件时,检测发生所述触摸抬起事件的位置是否在预设无效区域内,若是则丢弃所述触摸抬起事件,包括:
    当发生第一触点的触摸按下事件时检测是否发生第二触点的触摸按下事件,若是,则判断所述第二触点的触摸按下事件是否发生在所述预设无效区域内;及
    如果所述第二触点的触摸按下事件发生在所述预设无效区域内,则检测是否发生两个触点的触摸抬起事件,当发生两个触点的触摸抬起事件时,检测所述第二触点的触摸抬起事件是否发生在所述预设无效区域内,若是,则丢弃所述第一触点的触摸抬起事件。
  15. 根据权利要求11至14任意一项所述的计算机可读存储介质,其特征在于,所述预设无效区域包括以下情况中至少一种:
    预先设置的在触摸屏的显示区域中距离显示区域的边缘为预设宽度的边缘区域;及
    预先设置的触摸屏的显示区域中的中心位置区域。
PCT/CN2017/102558 2016-12-05 2017-09-21 终端的触摸操作控制方法、终端和计算机可读存储介质 WO2018103410A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201611101792.7A CN106775393B (zh) 2016-12-05 2016-12-05 终端的触摸操作控制方法和装置
CN201611101792.7 2016-12-05

Publications (1)

Publication Number Publication Date
WO2018103410A1 true WO2018103410A1 (zh) 2018-06-14

Family

ID=58883528

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/102558 WO2018103410A1 (zh) 2016-12-05 2017-09-21 终端的触摸操作控制方法、终端和计算机可读存储介质

Country Status (2)

Country Link
CN (1) CN106775393B (zh)
WO (1) WO2018103410A1 (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106775393B (zh) * 2016-12-05 2018-11-27 广东欧珀移动通信有限公司 终端的触摸操作控制方法和装置
CN112073778A (zh) * 2019-06-10 2020-12-11 海信视像科技股份有限公司 显示设备及按键传递的容错方法
CN111273809B (zh) * 2020-01-09 2022-05-17 Oppo(重庆)智能科技有限公司 数据获取方法、装置、电子设备及存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101364160A (zh) * 2008-09-24 2009-02-11 广东威创视讯科技股份有限公司 一种用于触摸屏的纠错方法
US20100216447A1 (en) * 2009-02-26 2010-08-26 Samsung Electronics Co., Ltd. Mobile terminal and method for preventing unintended operation of the same
CN101950227A (zh) * 2010-08-27 2011-01-19 宇龙计算机通信科技(深圳)有限公司 一种电容屏的按键区域设置方法及终端
CN105045454A (zh) * 2015-08-27 2015-11-11 广东欧珀移动通信有限公司 一种终端防误触方法及终端
CN106775393A (zh) * 2016-12-05 2017-05-31 广东欧珀移动通信有限公司 终端的触摸操作控制方法和装置

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102799353A (zh) * 2012-06-18 2012-11-28 上海鼎为软件技术有限公司 指令动作的确认方法、指令装置及电子装置
CN105426074A (zh) * 2015-10-29 2016-03-23 上海救要救信息科技有限公司 一种取消误操作的方法及系统

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101364160A (zh) * 2008-09-24 2009-02-11 广东威创视讯科技股份有限公司 一种用于触摸屏的纠错方法
US20100216447A1 (en) * 2009-02-26 2010-08-26 Samsung Electronics Co., Ltd. Mobile terminal and method for preventing unintended operation of the same
CN101950227A (zh) * 2010-08-27 2011-01-19 宇龙计算机通信科技(深圳)有限公司 一种电容屏的按键区域设置方法及终端
CN105045454A (zh) * 2015-08-27 2015-11-11 广东欧珀移动通信有限公司 一种终端防误触方法及终端
CN106775393A (zh) * 2016-12-05 2017-05-31 广东欧珀移动通信有限公司 终端的触摸操作控制方法和装置

Also Published As

Publication number Publication date
CN106775393B (zh) 2018-11-27
CN106775393A (zh) 2017-05-31

Similar Documents

Publication Publication Date Title
WO2017032068A1 (zh) 一种查看短信的方法及用户终端
CN106406734B (zh) 触摸操作处理方法及终端设备
WO2017032085A1 (zh) 一种终端防误触方法及终端
CN107506092B (zh) 一种输入控制方法和终端
US10831342B2 (en) Method used by mobile terminal to return to home screen, mobile terminal and storage medium
WO2018103410A1 (zh) 终端的触摸操作控制方法、终端和计算机可读存储介质
JP2015519671A (ja) タッチスクリーンの誤操作防止方法、タッチスクリーン、移動端末、プログラム及び記録媒体
JP2016502200A (ja) スワイプジェスチャ認識技術を使用したコンテンツ操作
WO2017088102A1 (zh) 一种智能终端的文件选中方法及一种智能终端
CN103488419A (zh) 通信终端的操作方法及通信终端
US20180152622A1 (en) Mobile terminal-based photographing method and mobile terminal
CN104281295A (zh) 一种防止触摸屏上滑动误触发的方法、系统和电子设备
WO2016119683A1 (zh) 一种文件选择方法和系统、计算机存储介质
CN104461287A (zh) 一种悬浮物体的处理方法、装置和终端
CN103473014A (zh) 一种多任务切换方法和终端
CN104951213A (zh) 防止误触发边缘滑动手势的方法及手势触发方法
WO2017032069A1 (zh) 一种短信处理方法及用户终端
WO2013139075A1 (zh) 触摸屏终端操作的方法和装置
WO2017101333A1 (zh) 列表项操作的处理方法和装置
CN111966273A (zh) 信息显示处理方法及装置
WO2015117526A1 (zh) 一种触控处理方法和装置
WO2017067165A1 (zh) 多指滑动手势的识别方法、装置及终端设备
KR101961907B1 (ko) 사용자 터치 유지 시간에 기초한 이동단말기의 컨텐츠 제공 방법
CN110764683B (zh) 一种处理操作方法及终端
WO2016070465A1 (zh) 多事件输入的方法和终端

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17879369

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17879369

Country of ref document: EP

Kind code of ref document: A1