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

通过标题栏拖动窗口存在一些问题 #6

Closed
liby opened this issue Oct 15, 2022 · 8 comments
Closed

通过标题栏拖动窗口存在一些问题 #6

liby opened this issue Oct 15, 2022 · 8 comments

Comments

@liby
Copy link
Collaborator

liby commented Oct 15, 2022

问题描述

我发现代码中设置了 with_titlebar_transparent,同时也发现代码中有做 drag_window 的监听事件,但使用下来,发现窗口依旧很难通过标题栏拖动,只有在左上角的特定位置可以进行拖动,很难找到这个点

Kapture.2022-10-15.at.11.23.40.mp4
@tw93
Copy link
Owner

tw93 commented Oct 15, 2022

打开 with_devtools 111 和116行这边可以打log调试,你试试看
我当时那个主要是用于兼容 微信和微信读书场景的🐶

@liby
Copy link
Collaborator Author

liby commented Oct 15, 2022

打开 with_devtools 111 和116行这边可以打log调试,你试试看 我当时那个主要是用于兼容 微信和微信读书场景的🐶

额,控制台我打开了,触发不了 drag_window 事件。
跟微信和微信读书没啥关系(你可以试试,只有在左上角一个特别的位置可以拖动),drag_window 是加在 topDom 上的不是,跟里面套的东西没啥关系,就是设置了 with_titlebar_transparent 导致选不到标题栏,然后没法拖动窗口了,要自己做拖动的 handler 了

@liby liby closed this as completed Oct 15, 2022
@tw93
Copy link
Owner

tw93 commented Oct 15, 2022

1212.mp4

看视频

@liby
Copy link
Collaborator Author

liby commented Oct 15, 2022

1212.mp4
看视频

MacBook Pro (16-inch, 2019) 2.3 GHz 8-Core Intel Core i9

macOS 12.6 (21G115)

使用的是罗技 G903 鼠标,不是触摸板

Kapture.2022-10-15.at.13.27.05.mp4

@tw93
Copy link
Owner

tw93 commented Oct 15, 2022

原来如此 我懂了 很感谢反馈,不过我手边没有鼠标,辛苦帮忙调试调试,可以直接pr

@tw93
Copy link
Owner

tw93 commented Oct 15, 2022

pull 下最新的代码,再试试~

@liby
Copy link
Collaborator Author

liby commented Oct 15, 2022

pull 下最新的代码,再试试~

🚀,可以了,怪不得之前控制台能看到 SyntaxError: Unexpected token '.' 的报错。
我还以为是这

手滑点到,写多了一个,没往它少了对应的起始符号想。

我下午还想了半天怎么控制台里搜不到 pack-top-dom 这些,是不是没有绘制出来

@tw93
Copy link
Owner

tw93 commented Oct 15, 2022

我的锅

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