Web appOpen in Telegram
JJavaScript/Node.js 台灣
JavaScript/Node.js 台灣
@JavaScriptTw · group · Tech · indexed since 2026-07-05 archive for October 2020
1 999members−15 in a week
4writing in 30 days
15messages in 30 days
103 295messages in the index

Messages from October 2020

‹ October 2020 ›×
R
不过在一些 electron terminal 上还有一些奇怪的问题
Whole thread · 1 reply →
N
click事件有没有发生范围一说呢?比如有两个紧挨的元素,鼠标放在它们中间,会不会两个元素都触发事件?又比如两个元素重叠,但是上层比底层小,也可以点击到它们的交界处。精确到一个像素点属于哪个元素吗?
N
两个元素重叠后感觉上层元素边缘点不中的样子
フ
你如果有辦法手控滑鼠到pixel level 可能會遇到這個問題 一般人做不到那就別這樣設計
J
可以想一想触摸屏点按钮的时候浏览器会怎么样
N
还不确定是不是判断那1px,即便是,是鼠标的哪个位置呢?,鼠标本身也不是1px呀。我觉得是有个范围,可以同时点到两个元素。
Whole thread · 1 reply →
フ
「覺得」站不住腳的 你可以給個範例或影片來證明這件事才有辦法討論
  1. フ
    像是上面說的觸控銀幕 可能是我手指很粗在很短的時間內 在目標附近觸發了很多個 touch 事件 但滑鼠點擊應該不會發生
    1. N
      我不想深究了。Google半天也是js语言层面的。只是回想起以前做的一个页面有这个问题
Whole thread · 2 replies →
  1. R
    吾辈后来想到的方案是自行实现,因为 1. 插件自身只需要解析认识的文件就好了 2. 拥有更完整的控制权 3. 有现成的 npm 包不难粘合进去
Whole thread · 1 reply →
  1. R
    不,吾辈用了另外一个 api registerDocumentLinkProvider
  2. R
    registerDefinitionProvider 理论是更合适的选择,但这玩意返回 Location 对象里的 url 字段在点击时实际 url 会被强制转义,这是一个已知 issue
Whole thread · 2 replies →

An open public feed from the search index ChatCrawler — “Google for public Telegram”; refreshed as the venue is crawled. Times are UTC.

Public content only, official Telegram API. About · FAQ · What we do not do · Remove a page · Catalog · Search · How we count