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

你好,我在使用过程中遇到如下问题,第一点的bug比较致命,希望可以有好的解决方法,感谢 #41

Open
qiubaitea opened this issue Feb 20, 2023 · 2 comments

Comments

@qiubaitea
Copy link

1.在进入新页面后返回原页面,悬浮窗点击闪退了。
2.能不能增加一个让悬浮窗隐藏和显示的功能,remove方法好像把悬浮窗都删掉了,add也是弄了个新的出来,想要旧的悬浮窗只需要初始化一次,后面仅仅显示和隐藏而已。
3.能否设置让悬浮窗贴边,因为里面离边边好像还有13px的距离。

@qiubaitea
Copy link
Author

第一点去除,是我本身代码出错了,没有这个bug,其他问题已用其他方案进行实现了。

@LiarrDev
Copy link

LiarrDev commented Jul 19, 2023

能不能增加一个让悬浮窗隐藏和显示的功能,remove方法好像把悬浮窗都删掉了,add也是弄了个新的出来,想要旧的悬浮窗只需要初始化一次,后面仅仅显示和隐藏而已。

可以只初始化一次,然后直接对 View 做显示隐藏:

FloatingView.get().view.isVisible = false

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

2 participants