2022/09/17 ~ 2022/09/23 のもくもく日記
もくもく 前回までは
2022/09/10 ~ 2022/09/16 のもくもく日記 をご覧ください。
途中経過
その1
いろいろWSA で拾ったマウスイベントをどうしたものかと考えていたけど、特に妙案がないので諦めたw ……修正は大きくなるけど、この問題を回避するためにタップイベントタイミングを変更して、ダブルタップ時に出来ないか考えてみよっと💪
"pointerInput" でタップとダブルタップを設定しようとしたけれど、ripple が出なくなってしまい、さらに通常のripple を設定する方法がさっぱりやったorz で探してみたら、実験的機能ではあるけれど"combinedClickable" が使えそう👀
あ、ダメだ。ランチの表示領域が長いのだけど、その上でマウスホイールでスクロールすると、何回か発火してしまってダブルクリックと判定されちゃう……
まだまだー、次はこれ! https://developer.android.com/jetpack/compose/handling-interaction
Interaction に発生時間のデータが無いので、時間指定をするなら、もう一工夫入りそう……
大雑把にこんな実装をしてみて、間隔が長いダブルクリックを排除するようにしてみた
……問題はこれをどうUI コンポーネントに反映するか🤔
今回の進捗
- GitHub
- Nintendo Switch でトレーニングを進めた
- 本を読み進めた
※関連SNS
- https://x.com/shion_engineer/status/1571101993468596225
- https://x.com/shion_engineer/status/1571113802028191747
- https://x.com/shion_engineer/status/1571126137203593218
- https://x.com/shion_engineer/status/1571130218190114819
- https://x.com/shion_engineer/status/1571135044630237184
- https://x.com/shion_engineer/status/1571330514300338176
- https://x.com/shion_engineer/status/1571369790723493891
- https://x.com/shion_engineer/status/1571373254874664960
- https://x.com/shion_engineer/status/1572062407329185792