Polyfill Support and Global Config
- The biggest addition to v1.0.0 is the polyfill support. Now you can optionally give "support" to older browsers and devices that do not support force or 3d touch. It uses time to fake a pressure value, the longer you press, the higher the "force" is returned. It takes one second to go from 0 to 1 and can do a good job of faking pressure if that if what you are looking for. The Instagram iOS app for example uses the "peek and pop" on iOS. If you have 3D touch support, then you can press hard on an Instagram photo to display it. Else if you do not have 3D touch support, you can simply long hold on an image and it will open it just like the 3D touch version. The same idea applies with the optional pressure.js polyfill support.
- Now you can set global configurations for pressure so you do not have to set them on each element if you are using options that will be used throughout your site.
- Fixed a bug that did not allow the value of 1 to be reached on force touch trackpads. Now every type of support will have a force value returned that goes from 0 to 1. Before force touch only got up to around 0.9997 or so.
- Other various bugs, improvements, and happinest went into making this build!
-Also this build starts the 1.0.0 track of pressure 🎉 This will make it easier to make smaller more incremental improvements to pressure.