SheetXL - v0.8.0-beta.9+sites.210.e2d420901
    Preparing search index...

    Function getInputModality

    • The current input modality: 'touch' on a touch-first device, or anywhere the last press was a finger; 'mouse' once a mouse or pen presses on a mouse-first device.

      Returns InputModality

      Touch affordances (selection grips, large handles, touch scroll thumbs) key off this rather than off a static device test, so a laptop with a touchscreen shows them after a tap and hides them after a click. A touch-first device keeps them even when a mouse is plugged in.