event.pressure

Type Number
Event touch
Revision Release 2024.3703
Keywords touch, pressure

Overview

Number indicating the pressure of a touch, typically used to detect “3D Touch” events on compatible iOS devices (for instance the iPhone 6S). A value of 1.0 is the average touch pressure of the typical user. Knowing this, you can use a value 2-3 times higher to trigger special functionality.

Gotchas