Having a matching `selectend` event?

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

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
html
Lĩnh vực
api

Hướng nghiên cứu

No files or tests are named. Start by reading the Selection API material around selectstart, selectionchange, and getSelection, then review the issue discussion for existing rationale. Done means reaching and documenting a clear decision on whether selectend belongs in the API and what its firing semantics should be.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

NewAPI

A naive question, and there's probably a good reason why there isn't one already, but: would it make sense to also have a matching selectend event that fires once the user is done selecting something? Unless I'm misunderstanding, otherwise the process at the moment to work with the API is:

  • wait for selectstart
  • keep listening out for selectionchange events (which will keep firing as long as the user is still in the process of making the selection)
  • have some kind of timer/debounce on the change listener, to try and work out when the user is done with selecting things (and/or listen out for mouseup, touchend, pointerup, etc to try and guess when the user finished), and then get the selected text with .getSelection()
Ngôn ngữ chính
HTML
Star
49
Fork
30
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

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 w3c/selection-api

Tất cả issue của w3c/selection-api

Issue tương tự

Thêm issue về Backend & API Design

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.