Skip to content

A jQuery library to emulate Apple's force / 3D touch functionality

Notifications You must be signed in to change notification settings

robfarr/jquery-forcetouch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

jQuery Force Touch

A jQuery library to emulate Apple's force / 3D touch functionality.

Github Pages

Force touch can be used to trigger functionality when the user holds down on an element, without breaking any existing onclick functionality.

The example included displays a preview of the link when it is force touched.

Usage

Call .forcetouch(); with any of the specified options to enable force touch on the element.

Configuration Options

  • onstart - Invoked when the force touch is started / triggered.
  • onend - Invoked when the force touch is ended.
  • delay - Overrides the default delay of 100ms between a user holding down and the onstart event being triggered.

About

A jQuery library to emulate Apple's force / 3D touch functionality

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published