Add touch device support using Pointer Events API

Đang mở
#63 3 bình luận 0 reaction 2 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@pavel-klimov đang làm issue này rồi.

Từ ngày 4/8/2025.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

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

Ngôn ngữ chính
TypeScript
Star
145
Fork
12
Merge trung bình
1 ngày 14 giờ
Pull request đã merge (30 ngày)
43

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của gravity-ui/graph

Tất cả issue của gravity-ui/graph

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.