| 37 |
37 |
|
//! Two of the eight members are not in that census at all, and the exception is
|
| 38 |
38 |
|
//! worth stating rather than leaving to be noticed. [`Affordance::Gesture`] and
|
| 39 |
39 |
|
//! [`Affordance::Haptic`] adapt *behaviour*, which no stylesheet contains, so
|
| 40 |
|
- |
//! counting `@media` blocks could never have found them. Their evidence has the
|
| 41 |
|
- |
//! same shape in a different file: goingson `frontend/js/touch.js:12` and
|
| 42 |
|
- |
//! Balanced Breakfast `frontend/js/touch.js:12` carry the identical line
|
|
40 |
+ |
//! counting `@media` blocks could never have found them. Their evidence was a
|
|
41 |
+ |
//! line of JavaScript rather than a media query:
|
| 43 |
42 |
|
//!
|
| 44 |
43 |
|
//! ```js
|
| 45 |
44 |
|
//! const isTouchDevice = ('ontouchstart' in window) || (navigator.maxTouchPoints > 0);
|
| 46 |
45 |
|
//! ```
|
| 47 |
46 |
|
//!
|
| 48 |
|
- |
//! and each hangs five gestures off it. Two apps, arrived at independently,
|
| 49 |
|
- |
//! hand-rolling the density question this crate exists to answer.
|
|
47 |
+ |
//! which two apps carried identically, each hanging five gestures off it. Two
|
|
48 |
+ |
//! codebases arriving independently at the density question this crate exists
|
|
49 |
+ |
//! to answer, and neither able to state it where a stylesheet could see it.
|
| 50 |
50 |
|
//!
|
| 51 |
51 |
|
//! # The two axes are borrowed, never redefined
|
| 52 |
52 |
|
//!
|
| 204 |
204 |
|
/// tick as a drag crosses a threshold, the thump as a gesture fires.
|
| 205 |
205 |
|
///
|
| 206 |
206 |
|
/// A contact-patch claim, which is what makes it this crate's business
|
| 207 |
|
- |
/// despite being the one member nothing on screen shows. goingson
|
| 208 |
|
- |
/// `frontend/js/haptics.js`.
|
|
207 |
+ |
/// despite being the one member nothing on screen shows, and the one with
|
|
208 |
+ |
/// no consumer at present: the renderers that would deliver it do not ask
|
|
209 |
+ |
/// for it yet.
|
| 209 |
210 |
|
///
|
| 210 |
211 |
|
/// The proxy breaks where the hardware has haptics and the user or the OS
|
| 211 |
212 |
|
/// has switched them off. That is neither [`Density`] nor [`SizeClass`], and
|