The content of the invention
Embodiments of the invention provide a kind of screen scroll method and device, can avoid touch operation that is continuous, repeating, improve the operating experience degree of user and extenuate due to the problem of the hand muscle strain that number of operations is frequently caused.
To reach above-mentioned purpose, embodiments of the invention are adopted the following technical scheme that:
In a first aspect, embodiments of the invention provide a kind of screen scroll method, including:
When user carries out slide on the touchscreen, the rolling scope of the currently displayed data content of the touch-screen is determined;
Sliding speed during according to user's slide, determines Scroll Rate;
According to data content of the Scroll Rate in the touch-screen scrolling display rolling scope.
With reference in a first aspect, in the first possible implementation of first aspect, the rolling scope of the data content for determining that the touch-screen is currently displayed, including:
The scroll bar information of the currently displayed data content of the touch-screen is read, and according to the scroll bar acquisition of information original position and final position;Or, the label information in the currently displayed data content of the touch-screen is read, and original position and final position are obtained according to the label information, the label information includes chapters and sections information, paragraph information, bookmark information and row number information;
The rolling scope is divided according to the original position and the final position.
With reference in a first aspect, in second possible implementation of first aspect, the sliding speed during slide according to user determines Scroll Rate, including:
Detect whether the sliding speed exceedes threshold value;
If then using the threshold value as the numerical value of the Scroll Rate;
If otherwise using the value of the sliding speed as the numerical value of the Scroll Rate.
With reference to second possible implementation of first aspect, in the third possible implementation, also include:
Before detecting whether the sliding speed exceedes threshold value, according to the rolling scope, the threshold value is determined.
With reference in a first aspect, and first aspect the first to three kind of possible implementation, in the 4th kind of possible implementation, also include:
When user carries out slide on the touchscreen, detect that the finger of user contacts the touch-screen and residence time, if reach preset value;
If then determine the rolling scope of the currently displayed data content of the touch-screen, and sliding speed during according to user's slide, determine Scroll Rate.
Second aspect, embodiments of the invention provide a kind of screen scroll device, including:
Detection module, for detecting whether user carries out slide on the touchscreen;
Surface analysis module, for when user carries out slide on the touchscreen, determining the rolling scope of the currently displayed data content of the touch-screen;
Velocity analysis module, sliding speed during for according to user's slide, determines Scroll Rate;
Screen scroll module, for the data content according to the Scroll Rate in the touch-screen scrolling display rolling scope.
With reference to second aspect, in the first possible implementation of second aspect, the surface analysis module, the scroll bar information specifically for reading the currently displayed data content of the touch-screen, and according to the scroll bar acquisition of information original position and final position;Or, the label information in the currently displayed data content of the touch-screen is read, and original position and final position are obtained according to the label information, the label information includes chapters and sections information, paragraph information, bookmark information and row number information;And the rolling scope is divided according to the original position and the final position.
With reference to second aspect, in second possible implementation of second aspect, the velocity analysis module, specifically for detecting whether the sliding speed exceedes threshold value;If then using the threshold value as the numerical value of the Scroll Rate;If otherwise using the value of the sliding speed as the numerical value of the Scroll Rate.
With reference to second possible implementation of second aspect, in the third possible implementation, also include:Adjusting module, for before detecting whether the sliding speed exceedes threshold value, according to the rolling scope, determining the threshold value.
With reference to second aspect, and the first to three kind of possible implementation of second aspect, in the 4th kind of possible implementation, the detection module, when being additionally operable to detect that user carries out slide on the touchscreen, the finger of user contacts the touch-screen and residence time, if reach preset value;If then determine the rolling scope of the currently displayed data content of the touch-screen, and sliding speed during according to user's slide, determine Scroll Rate.
Screen scroll method provided in an embodiment of the present invention and device, when user carries out slide on the touchscreen, determine the rolling scope of the currently displayed data content of the touch-screen, and sliding speed during according to user's slide, determine Scroll Rate, then the data content according to the Scroll Rate in the touch-screen scrolling display rolling scope.Relative to the screen scroll mode that velocity attenuation in the prior art etc. needs to repeat, the present invention can realize scrolling data content automatically, so that user avoids touch operation continuously, repeatedly, so as to improve the operating experience degree of user and extenuate due to the problem of the hand muscle strain that number of operations is frequently caused.
Specific embodiment
To make those skilled in the art more fully understand technical scheme, the present invention is described in further detail with reference to the accompanying drawings and detailed description.Embodiments of the present invention are described in more detail below, the example of the implementation method is shown in the drawings, wherein same or similar label represents same or similar element or the element with same or like function from start to finish.Implementation method below with reference to Description of Drawings is exemplary, is only used for explaining the present invention, and is not construed as limiting the claims.
Those skilled in the art of the present technique are appreciated that unless expressly stated, singulative used herein
" one ", " one ", " described " and " being somebody's turn to do " may also comprise plural form.It should be further understood that, used in specification of the invention wording " including " refer to the presence of the feature, integer, step, operation, element and/or component, but it is not excluded that in the presence of or add one or more other features, integer, step, operation, element, component and/or their group.It should be understood that when we claim element to be " connected " or during " coupled " to another element, it can be directly connected or coupled to other elements, or can also there is intermediary element.Additionally, " connection " used herein or " coupling " can include wireless connection or coupling.Wording "and/or" used herein includes one or more associated any cells for listing item and all combines.
Those skilled in the art of the present technique are appreciated that unless otherwise defined all terms (including technical term and scientific terminology) used herein have the general understanding identical meaning with the those of ordinary skill in art of the present invention.It should also be understood that those terms defined in such as general dictionary should be understood that with the meaning consistent with the meaning in the context of prior art, and unless defined as here, will not be with idealizing or excessively formal implication be explained.
In the present embodiment, implementation procedure of the present embodiment on intelligent terminal by taking the intelligent terminal including touch control display as an example, will be described.Wherein, the intelligent terminal can include one or more other physical user-interface devices, such as physical keyboard, mouse and/or control stick.Intelligent terminal can generally support various application programs, such as one or more in following application program:Telephony application, voice call application program, word-processing application, email application, website creates application program, web displaying/displaying application program, web page browsing application program, drawing application program, picture shows/show application program, video shows/show application program, videoconference application, instant message application program, application program is supported in training, picture shows/show application program, pictures management application program, digital camera applications program, digital camera applications program, disk makes application program, spreadsheet applications, game application, digital music player application and/or video frequency player application program.The various application programs that can be performed on the intelligent terminal (that is, a kind of equipment) can be used at least one conventional physical user-interface device, for example, touch interface.Shown corresponding information can be conditioned and/or be changed into next application program from an application program and/or change in corresponding application program in one or more function and equipment of touch interface.So, the conventional physique (for example, touching display screen) of equipment can support the various application programs with User Interface, these user interfaces for user be intuitively, it is appreciable and transparent.
The concrete structure of the intelligent terminal described in the present embodiment is referred to intelligent terminal as shown in Figure 1 100, wherein, intelligent terminal 100 has touch control display 110.Touch control display 110 is sometimes referred to as " touch-screen " or " touch screen ", or is " touch control display system ".Intelligent terminal 100 may include memory 120, controller 141, one or more processing units (CPU) 142, peripheral interface 143, power system 191, radio frequency (RF) circuit system 150, audio circuitry 160, input/output (I/O) subsystem 170, other inputs or control device 180 and outside port 190.These parts can be communicated by one or more communication bus or holding wire 130.In certain embodiments, peripheral interface 143, CPU142 and controller 141 can both be implemented on one single chip 140, can also implement on multiple chips.Controller 141 is used for control memory 120.In certain embodiments, audio circuitry 160 can be respectively coupled to loudspeaker 161 and microphone 162.In certain embodiments, other inputs or control device 180 can couple peripheral interface 143 by corresponding other input controllers 173.
Intelligent terminal 100 may include one or more optical pickocffs 111, and peripheral interface 143 is coupled by optical sensing controller 172.Holding wire 130 should be understood, intelligent terminal 100 is an example of multifunctional mobile equipment, and can have more or less than hard/soft functional part shown in Fig. 1, two or more parts can be combined, or can have different part configuration or arrangements, the hardware or software include one or more signal transactings and/or application specific integrated circuit.
Memory 120 may include high-speed random access memory or nonvolatile memory, such as one or more disk storage equipments, flash memory device or other non-volatile solid state memory equipment.Accessing memory 120 by the miscellaneous part such as CPU142 and peripheral interface 143 of intelligent terminal 100 can be controlled by controller 141.Peripheral interface 143 can be used to for the input of equipment and output ancillary equipment to be coupled to CPU142 and memory 120.One or more of processors 142 run or perform the instruction set of various software programs and/or storage in memory 120 to perform the various functions and processing data of intelligent terminal 100.Peripheral interface 143, radio frequency circuit system 150 receive and send radiofrequency signal, and the radiofrequency signal is also referred to as electromagnetic signal.Radio frequency circuit system 150 converts electrical signals to electromagnetic signal/be converted to electric signal from electromagnetic signal, and is communicated with communication network and other communication equipments by electromagnetic signal.Radio frequency circuit system 150 may include the well-known circuit system for performing these functions, and the circuit system includes but is not limited to antenna system, RF transceiver, one or more amplifiers, tuner, one or more oscillators, digital signal processor, codec chip group, subscriber identity module (SIM) card, memory etc..Radio frequency circuit system 150 can be communicated by radio communication with network and other equipment.Network such as internet, Intranet and/or wireless network.
Audio circuitry 160, loudspeaker 161 and microphone 162 provide the COBBAIF between user and intelligent terminal 100.Audio circuitry 160 receives the voice data from peripheral interface 143, and the voice data is converted into electric signal, and by electric signal transmission to loudspeaker 161.Loudspeaker 161 converts electrical signals to the audible sound wave of human ear.The electric signal that audio circuitry 160 is also changed from acoustic receiver by microphone 162.Audio circuitry 160 converts electrical signals to voice data and is transferred to peripheral interface 143 to be processed by the voice data.Memory 120 and/or radio frequency circuit system 150 can be retrieved and/or be transferred to voice data by peripheral interface 143 from memory 120 and/or radio frequency circuit system 150.In certain embodiments, audio circuitry 160 also includes an earphone jack.Earphone jack provides the interface between audio circuitry 160 and removable audio input/output ancillary equipment, the audio input/output ancillary equipment such as output type earphone has output (for example simultaneously, for the earphone of one or two ear) and input (for example, microphone) headphone.
Input/output ancillary equipment on intelligent terminal 100 such as touch-screen 110 and other input control apparatus 180 are coupled to peripheral interface 143 by I/O subsystems 170.I/O subsystems 170 may include display controller 171 and one or more input controllers 173 for other inputs or control device.One or more input controllers 173 from/to other input or control device 180 receive/send electric signal.Other input control apparatus 180 may include physical button (for example, push button, rocker button etc.), dial, slider switch, control stick, click type rotating disk etc..In some embodiments selected else, input controller 173 may be coupled to any (or neither one) following equipment:Keyboard, infrared port, USB port and pointing device, the pointing device such as mouse.One or more buttons may include the up/down button of the volume control for loudspeaker 161 and/or microphone 162.One or more of buttons may include a push button.
Touch-screen 110 provides the input interface and output interface between equipment and user.Display controller 171 receives and/or sends electric signal from/to touch-screen 110.Touch-screen 110 shows to the visualization of user and exports.Visualization output may include figure, text, icon, video and any combination of them (being referred to as " figure ").In certain embodiments, some or all in visualization output may correspond to user interface object.
Touch-screen 110 receives the sensor or one group of sensor of the input from user with touch-control surface, based on tactile and/or tactile.Contact (and any movement or destruction of contact) on touch-screen 110 and display controller 171 (together with the instruction set in any associated module and/or memory 120) detection touch-screen 110, and the contact that will be detected is converted into and interacting including user interface object (for example, one or more soft keys, icon, webpage or the image) on touch-screen 110.In the exemplary embodiment, the contact point between touch-screen 110 and user corresponds to the finger of user.
Although other display technologies can be used in other embodiments, touch-screen 110 can be used liquid crystal display (LCD) technology, light emitting polymer displays (LPD) technology, or light emitting diode (LED) technology.Using any touch sensing technology (the touch sensing technology including but not limited to capacitive, resistive, infrared and surface acoustic wave technique) and other proximity sensor arrays in various touch sensing technologies of currently known or later exploitation or the other elements of the one or more points for determining to be contacted with touch-screen 110, touch-screen 110 and display controller 171 can detect contact and its any movement or destruction.User can be used any suitable object or additives, stylus, finger etc. to contact touch-screen 110.In certain embodiments, user-interface design is used for the mainly contact with based on finger and gesture works, because finger contact area on the touchscreen is larger, so this input that may be not so good as to be based on stylus is accurate.In certain embodiments, the input based on coarse finger is converted to accurate pointer/cursor position or order for performing the desired action of user by equipment.Except touch-screen, intelligent terminal 100 may also include touch pad (not shown) for activating or disabling specific function.In certain embodiments, touch pad is the Touch Zone of equipment, and visualization output is not shown from touch pad unlike touch-screen.Touch pad can be the extension of the touch-control surface or the touch-control surface formed by touch-screen that are separated with touch-screen 110.
Intelligent terminal 100 also includes power system 191 for being powered to various parts.Intelligent terminal 100 may also comprise one or more optical pickocffs 111.Intelligent terminal 100 may also comprise one or more proximity transducers 112.Intelligent terminal 100 may also comprise one or more accelerometers 113 or gravity sensing module, the display direction of attitude and adjust automatically touch control display 110 for induced intelligent terminal.
In certain embodiments, software part of the storage in memory 120 includes operating system 121, communication module (or instruction set) 122, contact/motion module (or instruction set) 123, figure module (or instruction set) 124, text input module (or instruction set) 125, global positioning system (GPS) module (or instruction set) 126 and application program (or instruction set) 127.Additionally, in certain embodiments, the storage device of memory 120/overall situation internal state 128, as shown in Figure 1.Equipment/overall situation internal state 128 includes one or more of following:Applications active state, the applications active state instruction which application program (if any) is currently at active state;Dispaly state, the dispaly state indicates what application program, view or other information to occupy the various regions of touch-screen display 112;Sensor states, the sensor states include the information acquired in the various sensors and input control apparatus 180 of slave unit;And the position on equipment and/or the positional information of attitude.
Operating system (OS) 121 is including various software parts and/or driver for the communication between controlling and manage general system task (for example, the control of memory management, storage device, power management etc.) and being conducive to various hardware and software parts.For example, operating system can be Darwin, RTXC, LINUX, UNIX, OSX, WINDOWS, or embedded operating system such as VxWorks.
Communication module 122 is conducive to being communicated with other equipment by one or more outside ports 190 and also including various software parts for locating reason radio frequency circuit system 150 and/or the received data of outside port 190.Outside port 190 (for example, USB (USB), live wire etc.) by network (for example, internet, WLAN etc.) suitable for being either directly or indirectly coupled to other equipment.In certain embodiments, outside port is many pin connectors.
Contact/motion module 123 can detect and touch-screen 110 (with reference to display controller 171) and other touch-controls
The contact of equipment (for example, touch pad or physics click type rotating disk).Contact/motion module 123 includes various software parts for performing the various operations related to detection is contacted, such as to determine that whether coming in contact (for example, detect the event that the event of finger slide downward, finger are persistently clicked on), determine whether contact movement and tracking across touch-control surface motion (for example, detect the event of one or more fingers dragging), and determine whether contact has stopped (for example, the interruption in detection finger-up event or contact).Contact/motion module 123 receives the contact data from touch-control surface.It is determined that the motion of the contact point represented by a series of contact data, this may include to determine speed (value), speed (value and direction) and/or the acceleration (change in value and/or direction) of contact point.These operations can put on single contact (for example, a finger contact) or multiple contacts (for example, " Multi-contact "/multiple finger contacts) simultaneously.In certain embodiments, contact/motion module 123 detects the contact on touch pad with display controller 171.
Contact/motion module 123 can be input into by user's detection gesture.Different gesture in touch-control surface has different contact modes.Therefore, gesture can be detected by detecting specific contact mode.For example, detection singly refers to that Flick gesture includes detection finger-down event, it is afterwards detection and upward (lifting) event of the finger at finger-down event (for example, at picture mark position) same position (or substantially the same position) place.And for example, the finger in detection touch-control surface gently sweeps gesture includes detection finger-down event, is afterwards to detect one or more finger drag events, and is followed by detection finger (lifting) event upwards.
Figure module 124 includes various known software parts for the figure on touch-screen 110 or other displays is rendered and shown, the display touch-screen or other displays include the part for being used to change shown strength of figure.As used herein, term " figure " includes being shown to any object of user, including but not limited to text, webpage, icon (including the user interface object of soft key), digital picture, video, animation etc..In certain embodiments, figure module 124 stores the data of the figure for representing to be used.Each figure can be assigned to that corresponding code.Figure module 124 receives one or more codes from application program etc., one or more codes specify the figure that (if necessary) is shown together with coordinate data and other graphic attribute data, then produce screen image data to export to display controller 171.
Text input module 125 can be the part of figure module 124, the text input module soft keyboard is provided for be input into various application programs text (for example, contact person 271, Email 274, instant message 275, browser 282 and any other need the application program of text input).
GPS module 126 determine the position of equipment and provide for various application programs these information (for example, there is provided to the phone 272 for being used for location-based dialing, there is provided to the camera 277 as picture/video metadata, and provide to the application program for providing location Based service such as weather desktop small routine, local Yellow Page desktop small routine and map/navigation desktop small routine).
Application program 127 may include following modules (or instruction set), or its subset or superset:Contact module 271 (sometimes referred to as address book or contacts list), phone module 272, video conference module 273, email client module 274, instant message (IM) module 275, training support module 276, camera model 277, image management module 278, browser module 282, calendaring module 283, and other are by the application program module of tabular form display data content.Can also include:Desktop small routine module 284 (for example, including:Weather desktop small routine 284-1, stock desktop small routine 284-2, calculator desktop small routine 284-3, alarm clock desktop small routine 284-4, dictionary desktop small routine 284-5 and other desktop small routines obtained by user, and the desktop small routine 284-6 of user's establishment), desktop small routine founder module 285 for forming the desktop small routine 284-6 of user's establishment, search module 286, the video and music that can be made up of video player module and musical player module broadcast device module 279, notepad module 280, mapping module 281;And/or Online Video module 287.
Each module and application program in above-mentioned recognized module and application program correspond to one group of executable instruction, the executable instruction is used to perform one or more above-mentioned functions with the method (for example, computer implemented method as herein described and other information processing method) described in this application program.These modules (i.e. instruction set) need not be realized as single software program, code or module, therefore each subset of these modules can be combined or otherwise be re-arranged in various embodiments.In certain embodiments, memory 120 can store the subset of module that the above recognized and data structure.Additionally, memory 120 can store add-on module and data structure not described above.
Touch-screen can show one or more figures in user interface (UI).In this embodiment and in other embodiments described below, user can select one or more of figure by doing gesture on figure, for example, use one or more fingers or one or more stylus.In certain embodiments, when the contact that user is interrupted with one or more figures can occur the selection to one or more figures.In certain embodiments, gesture may include the one or many touch for having been contacted with intelligent terminal 100, and one or many gently sweeps (from left to right, from right to left, up and/or down) and/or finger roll (from right to left, from left to right, up and/or down).In certain embodiments, it is not intended to which middle contact pattern may not select the figure.For example, when the gesture corresponding to selection is touch, inswept application program image target is gently swept gesture and may not select corresponding application program.
The embodiment of the present invention provides a kind of screen scroll method, as shown in Fig. 2 including:
S1, when user carries out slide on the touchscreen, determines the rolling scope of the currently displayed data content of the touch-screen.
In the present embodiment, the slide that user is carried out on the touchscreen can be specifically that user keeps being contacted with touch-screen and moving the slip on the touchscreen of the finger produced by finger by finger, for example:As shown in Figure 2 a, when user needs page turning that the content of telephone directory is downward, then point touching screen and slide from lower to upper;Or as shown in Figure 2 b, when user needs to page up the content of telephone directory, then point touching screen and slide from top to bottom.To the left and page turning to the right slide process similarly.
Specifically, when user carries out slide on the touchscreen, terminal device starts to detect and determine the rolling scope of the currently displayed data content of touch-screen.
S2, sliding speed during according to user's slide, determines Scroll Rate.
In the present embodiment, the touch point on terminal device detection user touching touch-screen, and the touch point is set to starting point;And real-time tracking is from the starting point to the location variation of the movement of current touch point;When location variation reaches certain hour or distance threshold, then judge that user is slided, it is possible to according to location variation and the time for producing the location variation, calculate sliding speed.Further, if user's finger is not up to preset value in touch-screen residence time, can normally be rolled by the way of traditional velocity attenuation;If user's finger reaches preset value in touch-screen residence time, uniform roll is carried out in scope is rolled using Scroll Rate, for example:The event for triggering uniform roll can include:User's finger reaches preset value in touch-screen residence time, and user's finger leaves touch-screen after preset value is reached, then the moment for leaving touch-screen in user's finger starts uniform roll.Wherein, the direction that the touch-screen is rolled automatically can be consistent with the direction that finger is slided, it is also possible to opposite with finger orientation.
S3, according to data content of the Scroll Rate in the touch-screen scrolling display rolling scope.
Wherein, when there is the event of screen scroll stopping, then terminal device triggering touch-screen stops rolling.The event that screen scroll stops is included but is not limited to:Rolling reaches the edge of data content, such as the last item data message;The time for carrying out automatic rolling using Scroll Rate reaches time threshold;The distance for carrying out automatic rolling using Scroll Rate reaches distance threshold;And user makes the operation for stopping rolling, such as:During being rolled automatically using Scroll Rate, user's point touching screen.
In the present embodiment, the direction of " automatic to roll " and form are not limited, by taking volume intelligent terminal 100 as shown in Figure 1 as an example, it includes one or more accelerometers 113 or gravity sensing module, the display direction of attitude and adjust automatically touch control display 110 for induced intelligent terminal.Therefore " automatic to roll " described in the present embodiment includes but is not limited to vertically and horizontally roll, for example:Rolled automatically using any direction when map is browsed, vertical scrolling is used when vertical tabulation is browsed, when horizontal tabulation is browsed using horizontal rolling etc..
In the present embodiment, a part or whole that scope refers specifically to data content shown on the touch-screen of present terminal equipment are rolled.Wherein, shown data content can specifically have various, for example:Word, symbol and character content that telephone directory, daily record, form etc. are shown with tabular form;Can also be the content that e-book, webpage etc. are shown with rows of word and part graphic form;Can also be height picture more long, such as:Caricature picture, by photo of wide-angle photography etc..In the present embodiment, the concrete mode of the rolling scope of the currently displayed data content of the touch-screen is determined, can include:
The scroll bar information of the currently displayed data content of the touch-screen is read, and according to the scroll bar acquisition of information original position and final position.For example:In the systems such as Android, iOS in terminal device operation; telephone directory is shown by tabular form; and the main initial by name realizes sequence in telephone directory; and when mobile terminal shows telephone directory by touch-screen; would generally be in the edge show scroll bars of touch-screen; and from top to bottom show that letter A to Z (it should be noted that the letter of display can be hidden in the scroll bar, and shows current letter when user touches scroll bar successively;The letter being particularly shown can be with different according to different language, however it is not limited to alphabetical A to Z;Stroke, assumed name etc. can also be shown in non-Latin language environment).Terminal device can be according to belonging to scroll bar information determines the currently displayed content of touch-screen initial, and original position is set to the last item number in the initial, final position is set to the last item number in the initial.Can also be the number of multiple continuous initials, such as:Original position is set to first number that name initial is A, and final position is set to the last item number that name initial is C.
Or, the label information in the currently displayed data content of the touch-screen is read, and original position and final position are obtained according to the label information, the label information includes chapters and sections information, paragraph information, bookmark information and row number information.For example:The currently displayed data content of touch-screen is e-book, label information is chapters and sections information and row number information, then terminal device obtains the first row of the chapters and sections of currently displayed content as original position, and using last column of the chapters and sections as final position, will a chapter construction to roll scope.Further, label information is paragraph information and row number information, and a paragraph can also be divided into rolling scope by terminal device.Further, user can be by two bookmarks of self-defined mark, and label information is bookmark information and row number information, and terminal device obtains row pointed by previous bookmark as original position, and using the row pointed by latter bookmark as final position.
The rolling scope is divided according to the original position and the final position.
In the present embodiment, the sliding speed during slide according to user, determines Scroll Rate, including:Detect whether the sliding speed exceedes threshold value.If then using the threshold value as the numerical value of the Scroll Rate.If otherwise using the value of the sliding speed as the numerical value of the Scroll Rate.
Wherein, terminal device can gather the slide of user, and the prestissimo that finger is slided on the touchscreen is used as the sliding speed;Or, terminal device can gather the slide of user, and gather the velocity variations situation that finger is slided on the touchscreen, and ask for the average value of the speed that finger is slided on the touchscreen as the sliding speed.
In the present embodiment, also include:Before detecting whether the sliding speed exceedes threshold value, according to the rolling scope, the threshold value is determined.
Wherein, the threshold value can be set by the user and record in terminal device, it is also possible to be set automatically by terminal device, for example:The corresponding relation of a scrolling series scope and threshold value is preset in terminal device, and according to the current rolling scope dynamic adjusted threshold value for determining.
In the present embodiment, triggering terminal equipment starts perform detection and determines to roll the trigger event of scope, it can be slide that user is carried out on the touchscreen, or before user proceeds by slide, keep finger contact touch-screen certain hour, and " the lasting event clicked on " is obtained by terminal device, then " the lasting event clicked on " starts perform detection and determines to roll the trigger event of scope as triggering terminal equipment.
Therefore, on the basis of above method flow, can also include:When user carries out slide on the touchscreen, detect that the finger of user contacts the touch-screen and residence time, if reach preset value.If, it is determined that the rolling scope of the currently displayed data content of the touch-screen, and sliding speed during according to user's slide, determine Scroll Rate.For example:
As shown in Figure 2 c, when terminal device captures user and carries out slide on the touchscreen with finger, whether detection finger stops after sliding.If finger stops after sliding, whether detection finger have left whether screen, i.e. finger no longer contact touch-screen.
If finger have left screen, judge to use traditional approach roll screen, such as the roll screen by the way of velocity attenuation.
If finger stops after sliding and do not frame out, whether detection finger reaches preset value in touch-screen residence time.If finger reaches preset value in touch-screen residence time, data content of the Scroll Rate acquired in touch-screen scrolling display rolls scope, wherein it is possible to uniform roll.If finger is not reaching to preset value in touch-screen residence time, using traditional approach roll screen;Or do not rolled;Again or, the step of return to " judge finger whether have left screen ", judged again
And detect whether the event for stopping rolling is triggered in rolling process, stop rolling if being triggered.
Wherein, trigger event can also include:" event of the lasting click in designated area ", for example:When terminal device detects user's point touching screen, obtain the coordinate information of user's point touching screen, and judge whether user has clicked on designated area according to the coordinate information, wherein, designated area refers to a range of operating area on touch-screen, such as the region in the touch-screen that dotted line frame as shown in Figure 2 d is marked;If then judging whether user keeps finger to contact touch-screen certain hour, if so, then terminal device obtains " event of the lasting click in designated area " as trigger event.It should be noted that in the concrete application of the present embodiment, designated area can be the mode of the region on the touch-screen pre-set by user and display, such as:User encloses a certain range areas selected on touch-screen in advance, and terminal device can highlight the region that user encloses choosing in advance by identification patterns such as the coloring different from background, wire frames;Or, terminal device can also be not provided with any mode for highlighting.For another example:Designated area can also be the scope of whole touch-screen, and the clicking operation of user optional position on the touchscreen is as the clicking operation in designated area.
Screen scroll method provided in an embodiment of the present invention, when user carries out slide on the touchscreen, determine the rolling scope of the currently displayed data content of the touch-screen, and sliding speed during according to user's slide, determine Scroll Rate, then the data content according to the Scroll Rate in the touch-screen scrolling display rolling scope.Relative to the screen scroll mode that velocity attenuation in the prior art etc. needs to repeat, the present invention can realize scrolling data content automatically, so that user avoids touch operation continuously, repeatedly, so as to improve the operating experience degree of user and extenuate due to the problem of the hand muscle strain that number of operations is frequently caused.
The embodiment of the present invention also provides a kind of screen scroll device, as shown in figure 3, screen scroll device includes:Detection module 31, surface analysis module 32, velocity analysis module 33, screen scroll module 34 and adjusting module 35, these functional modules may operate in intelligent terminal as shown in Figure 1, the memory 120 in equipment as shown in Figure 1 can be specifically stored, and operation is controlled by chip 140.
Detection module 31, for detecting whether user carries out slide on the touchscreen;
Surface analysis module 32, for when user carries out slide on the touchscreen, determining the rolling scope of the currently displayed data content of the touch-screen;
Velocity analysis module 33, sliding speed during for according to user's slide, determines Scroll Rate;
Screen scroll module 34, for the data content according to the Scroll Rate in the touch-screen scrolling display rolling scope.
Wherein, the surface analysis module 32, the scroll bar information specifically for reading the currently displayed data content of the touch-screen, and according to the scroll bar acquisition of information original position and final position;Or, the label information in the currently displayed data content of the touch-screen is read, and original position and final position are obtained according to the label information, the label information includes chapters and sections information, paragraph information, bookmark information and row number information;And the rolling scope is divided according to the original position and the final position.
Wherein, the velocity analysis module 33, specifically for detecting whether the sliding speed exceedes threshold value;If then using the threshold value as the numerical value of the Scroll Rate;If otherwise using the value of the sliding speed as the numerical value of the Scroll Rate.
In the present embodiment, can also include:Adjusting module 35, for before detecting whether the sliding speed exceedes threshold value, according to the rolling scope, determining the threshold value.
Further, the detection module 31, when being additionally operable to detect that user carries out slide on the touchscreen, the finger of user contacts the touch-screen and residence time, if reach preset value;If then determine the rolling scope of the currently displayed data content of the touch-screen, and sliding speed during according to user's slide, determine Scroll Rate.
Screen scroll device provided in an embodiment of the present invention, when user carries out slide on the touchscreen, determine the rolling scope of the currently displayed data content of the touch-screen, and sliding speed during according to user's slide, determine Scroll Rate, then the data content according to the Scroll Rate in the touch-screen scrolling display rolling scope.Relative to the screen scroll mode that velocity attenuation in the prior art etc. needs to repeat, the present invention can realize scrolling data content automatically, so that user avoids touch operation continuously, repeatedly, so as to improve the operating experience degree of user and extenuate due to the problem of the hand muscle strain that number of operations is frequently caused.
Each embodiment in this specification is described by the way of progressive, and identical similar part is mutually referring to what each embodiment was stressed is the difference with other embodiment between each embodiment.For especially for apparatus embodiments, because it is substantially similar to embodiment of the method, so describing fairly simple, the relevent part can refer to the partial explaination of embodiments of method.
One of ordinary skill in the art will appreciate that all or part of flow in realizing above-described embodiment method, computer program be can be by instruct the hardware of correlation to complete, described program can be stored in a computer read/write memory medium, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic disc, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..
The above; specific embodiment only of the invention, but protection scope of the present invention is not limited thereto, any one skilled in the art the invention discloses technical scope in; the change or replacement that can be readily occurred in, should all be included within the scope of the present invention.Therefore, protection scope of the present invention should be defined by scope of the claims.