Skip to content

fix: 弹窗拖拽选词超出范围误触发关闭 - #19

Open
cerry3184-spec wants to merge 1 commit into
cccyd2003-qwq:mainfrom
cerry3184-spec:fix/modal-drag-close
Open

fix: 弹窗拖拽选词超出范围误触发关闭#19
cerry3184-spec wants to merge 1 commit into
cccyd2003-qwq:mainfrom
cerry3184-spec:fix/modal-drag-close

Conversation

@cerry3184-spec

Copy link
Copy Markdown

把 modal-bg 的 onClick
改为 onPointerDown,防止用户在输入框拖拽选词时鼠标松开在弹窗外导致意外关闭。同时也修复了 CleanupModal 中的同样问题。

  把 modal-bg 的 onClick 改为 onPointerDown,避免 mousedown 在弹窗内、
  mouseup 在弹窗外时 click 事件冒泡到背景导致意外关闭。
  同时修复 CleanupModal 中的同样问题。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant