UI図鑑
Gestures · 03 · アクション

Long Press

長押し

long_press デモ
Long Press のデモ

ほかの呼び名

Press and HoldTouch and HoldLong Tap
Material 3
Gestures(Long press)
Material 2
Gestures(Long press)
Android (Compose)
Modifier.combinedClickable(onLongClick:) / detectTapGestures(onLongPress:)
iOS (HIG)
Touch and hold
SwiftUI
.onLongPressGesture / LongPressGesture
Web
contextmenu イベント(標準の長押しイベントは無い。pointerdown + タイマー)
Flutter
GestureDetector(onLongPress:) / InkWell(onLongPress:)

概要

一定時間(Flutter 既定 500ms)押し続けると発火する。発火の瞬間に触覚を鳴らすと「認識された」ことが伝わる。

使いどころ

コンテキストメニュー、複数選択モードへの切替、並べ替え開始、ツールチップ表示。

関連