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

希望能调整悬浮按钮位置 #221

Open
tamendeshijie opened this issue Feb 19, 2025 · 4 comments
Open

希望能调整悬浮按钮位置 #221

tamendeshijie opened this issue Feb 19, 2025 · 4 comments

Comments

@tamendeshijie
Copy link

具体描述

1.如果可以的话希望可以拖动悬浮按钮(让悬浮按钮停留在页面任意位置且不影响选项展开,类似苹果的那个白点)
2.或者大佬可否先提供一个悬浮按钮位于左侧的选项(即切换悬浮按钮位置,目前是在右下方,添加一个位于左下方)

@tamendeshijie
Copy link
Author

大佬辛苦!

@tamendeshijie
Copy link
Author

大佬大佬看看我

@hymbz
Copy link
Owner

hymbz commented Feb 23, 2025

😂放心啦,greasyfork 那的评论没有提示还有可能漏,github 这边 issue 不关每次点进来都能看到提示,是不会漏了你的。代码已经敲好了,会在下次更新加上的。

不过我觉得大部分人都不太会用到这个功能,因此没有做大的改动,只保存了拖拽后按钮相较原位的偏移距离。只是在原位附近小范围微调的话不会有问题,但如果拖拽距离过大,比如在窗口最大化后将按钮移到了最左边,然后将窗口宽度缩小一半,此时按钮还是按照之前的偏移距离显示的话就会超出显示范围。为了避免这种点不到按钮的情况加了个检测机制,如果按钮发现自己没被完全显示出来,就会自动回到原位去,这点需要注意下。

@tamendeshijie
Copy link
Author

好耶,感谢大佬,这样就足够用了!主要是用来在电纸书上看漫画用的,这样一个手就可以操作了

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