Vixen
feb85697

Core · guide

Touch action

How an element keeps a finger from scrolling the view around it — the `touch-action` property, the flags it reads as, the chain the document intersects to answer a scroll view, and why a mouse is never governed by it.

Edit this page on GitHub

Documents

Next

  • Pointer devices — How a handler finds out whether the press it is holding came from a finger, a mouse or a stylus — the field that says so, why its default is `Unknown` rather than `Mouse`, and why the pointer id cannot answer the question.
  • Cursors — What `cursor: pointer` does to the pointer — the cascade's answer, the stock shape it maps to, the one call a host has to make for any of it to be visible, and why every test for it is written against the window rather than against the document.
  • Composed utilities — How from-*, via-* and to-* build one gradient — utilities that set a --tw-* fragment instead of a declaration, why the cascade assembles them rather than the generator, and the initial value that stops a missing fragment erasing the whole rule.