Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dismiss方法会走多次 #1210

Open
fuchengxin opened this issue Apr 9, 2024 · 1 comment
Open

dismiss方法会走多次 #1210

fuchengxin opened this issue Apr 9, 2024 · 1 comment

Comments

@fuchengxin
Copy link

XPopup版本
2.10.0

手机系统和型号
荣耀X40 GT

描述你的问题

在dialog点击外围消失的时候,会多次执行dismiss方法,如图所示,在点击非dialog区域,在onTouchEvet方法中会执行MotionEvent.ACTION_MOVE与MotionEvent.ACTION_UP两个动作中的checkDismissArea(event); 其中每次调用checkDismissArea(event)就调用了dismiss,所以dismiss会执行多次,demo也能复现此问题
image

@fuchengxin
Copy link
Author

fuchengxin commented Apr 9, 2024

image
image
补充图片,点击一次外围调用了4次dismiss

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

No branches or pull requests

1 participant