lightproxy
lightproxy copied to clipboard
Drag titlebar not work after scroll down rule content
Describe the bug Drag titlebar not work after scroll down rule content
To Reproduce Steps to reproduce the behavior:
- Scroll a rule content
- Drag titlebar
Expected behavior Window should be draged.
Screenshots
Desktop (please complete the following information):
- OS: macOS
- Version: 1.1.13
Log
Log at ~/Library/Logs/Electron/renderer.log and ~/Library/Logs/Electron/main.log

看起来是因为 editor 的一个绝对定位的浮层盖住了上面的 titlebar,可以参照 https://stackoverflow.com/questions/44818508/how-do-i-move-a-frameless-window-in-electron-without-using-webkit-app-region/44823888 的方式用一个绝对定位的 titlebar 解决这个问题。
不过需要处理下样式上的问题,例如透出后面的按钮,颜色等等。