Add touch device support using Pointer Events API

オープン
#63 コメント 3 件 リアクション 0 件 担当者 2 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@pavel-klimov がすでに取り組んでいます。

2025年8月4日 から。

評価

この issue はまだ評価されていません。

説明

enhancement

Problem

Currently, the graph only supports mouse events, making it useless on touch devices.

Solution

Add touch device support using the Pointer Events API.

Plan

  1. Add listening pointer events:
    • In src/components/canvas/graph/index.ts, add listening events: [pointerdown, pointermove, pointerup, pointerleave]. Emit same mouse event on fire these events.
  2. replace listening mouse-events for pointer event in Core-Component.
  3. Mark mouse-events like an deprecated

https://w3c.github.io/pointerevents/#the-pointermove-event

主要言語
TypeScript
スター
145
フォーク
12
平均マージ
1日 14時間
マージ済み PR(30日)
43

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

gravity-ui/graph のほかの issue

gravity-ui/graph の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。