throbber
The Wayback Machine - https://web.archive.org/web/20201001103751 /https://squadette.github.io/hammer.js/understanding-gestures/
`
`HAMMER.JS
`(/WEB/20201001103751/HTTPS://SQUADETTE.GITHUB.IO/HAMMER.J
`Docs (/web/20201001103751 /https://sq uadette.githu b.io/ham mer .js/getti ng-started/)
`Support (https://web.archive.org/web/20201001103751 /https:/ /stackoverflow .com/questions/tagged/hammer .js)
`Contribute
`(https://web.archive.org/web/20201001103751 /https://github.com/squadette/hammer.js/blob/master/CONTRI BUTI NG.md
`
`Toggle navigation (/web/20201001103751/httP-s:/ /sguadette.github.io/hammer.js)
`
`Understanding gestures
`Pt.I: Touch events
`The only thing that the browser gives to your Javascript application is a sequence of touch events ( touchstart , touchmove ,
`touchend , touchcancel ). Basically, when your finger touches the screen you get touchstart , when the finger moves you get
`touchmove , and when you lift the finger from the screen you get touchend .
`
`So, when you do any gesture such as tap, swipe or pinch, your application will only get a sequence of touch events. E.g., tap could
`be just touchstart + touchend that happen within a short period of time. Swipe is touchstart + many touchmove 's with increasing
`velocity+ touchend , and so on.
`
`Pt. II: Recognizing gestures
`Browser does not give you any events that directly correspond to gestures, something like tap , swipe or pinch .
`
`Your Javascript application must recognize gestures from the sequence of touch events. Basically, you need to implement a
`function that analyzes the last event that happened and the sequence of preceding events (with timing information) and decides if
`this looks like a certain gesture.
`
`For example, if it is touchstart + touchend and less than 1 00ms passed between two events then it looks like a tap. You can
`imagine what it takes to detect more complicated gestures such as swipe (that can happen in a different directions).
`
`HammerJS is just one of the libraries that does exactly that: recognizing gestures from the sequence of touch events.
`
`Pt. Ill: Browser gestures
`However, browsers actually do recognize gestures, they just do not share this information with you. This is disappointing, if you
`think about that: browsers have a lot of code that understands how the device works and how operating system detects gestures.
`But because there is no accepted standard for that, you have to detect gestures manually, as described above.
`
`Pt. IV: Default browser behavior
`
`When the browser detects gesture in the sequence of touch events, it normally does something that makes sense in this situation.
`
`For example, tap generates the same event as mouse click would: click . Pinch-zoom allows you zoom the page for easier
`reading. Vertical panning leads to scrolling the page.
`
`If the web page does not know anything about touch events (or does not bother) then it's going to work on touch devices in a way
`that people expect.
`
`Pt. V: Disabling default browser behavior
`
`Your application can actually disable any default browser behavior if it thinks that this would be better. Even the scrolling can be
`disabled, even tapping on links.
`
`Technically this is done either by calling event . preventDefault() on one of the touch events, or by specifying certain CSS
`properties (see below).
`
`Apple Inc. v. Smith Interface Techs., LLC
`IPR2024-01090 | Smith EX2005
`Page 1 of 2
`
`

`

`As the simplest example, if you listen for touchstart event and call preventDefault() on all of them then your page will become
`completely unresponsive on touch-based devices.
`
`You have to understand very well what exactly gets disabled. Suppose that you have a laptop with touchscreen and a mouse. You
`can take any <a> tag and listen on touchstart event on this DOM element, calling preventDefault() on it. This will prevent
`default browser behavior and stop generating click events.
`
`If you tap on this element using touch screen, nothing will happen. However, if you use the mouse and click on the link, it will
`work, because mouse click generates click event directly.
`
`Edit this P-ilge on GitHub ChttJ;is://web.archive.org/web/20201001103751/httf.!s://github.com/s~uadette/hammer.js/editlg!:tP-ilges/understanding:gestures.md)
`
`Tweet
`
`_(htq;is:/ /web.archive.orgLweb/20201001103751 /htq;i://eight.nl/).
`
`.(/ /web.archive.org/web/20201001103751 /htq;is:/ /twitter.com/share). ◄
`
`Page 2 of 2
`
`

This document is available on Docket Alarm but you must sign up to view it.


Or .

Accessing this document will incur an additional charge of $.

After purchase, you can access this document again without charge.

Accept $ Charge
throbber

Still Working On It

This document is taking longer than usual to download. This can happen if we need to contact the court directly to obtain the document and their servers are running slowly.

Give it another minute or two to complete, and then try the refresh button.

throbber

A few More Minutes ... Still Working

It can take up to 5 minutes for us to download a document if the court servers are running slowly.

Thank you for your continued patience.

This document could not be displayed.

We could not find this document within its docket. Please go back to the docket page and check the link. If that does not work, go back to the docket and refresh it to pull the newest information.

Your account does not support viewing this document.

You need a Paid Account to view this document. Click here to change your account type.

Your account does not support viewing this document.

Set your membership status to view this document.

With a Docket Alarm membership, you'll get a whole lot more, including:

  • Up-to-date information for this case.
  • Email alerts whenever there is an update.
  • Full text search for other cases.
  • Get email alerts whenever a new case matches your search.

Become a Member

One Moment Please

The filing “” is large (MB) and is being downloaded.

Please refresh this page in a few minutes to see if the filing has been downloaded. The filing will also be emailed to you when the download completes.

Your document is on its way!

If you do not receive the document in five minutes, contact support at support@docketalarm.com.

Sealed Document

We are unable to display this document, it may be under a court ordered seal.

If you have proper credentials to access the file, you may proceed directly to the court's system using your government issued username and password.


Access Government Site

We are redirecting you
to a mobile optimized page.





Document Unreadable or Corrupt

Refresh this Document
Go to the Docket

We are unable to display this document.

Refresh this Document
Go to the Docket