🎨 Update tauri and compatible chatgpt

This commit is contained in:
Tw93
2023-06-15 21:16:10 +08:00
parent ade330b75d
commit dbfacc8d59
6 changed files with 274 additions and 95 deletions

View File

@@ -114,17 +114,17 @@ document.addEventListener('DOMContentLoaded', () => {
domEl.addEventListener('mousedown', (e) => {
e.preventDefault();
if (e.buttons === 1 && e.detail !== 2) {
appWindow.startDragging();
appWindow.startDragging().then();
}
});
domEl.addEventListener('touchstart', () => {
appWindow.startDragging();
appWindow.startDragging().then();
});
domEl.addEventListener('dblclick', () => {
appWindow.isFullscreen().then((fullscreen) => {
appWindow.setFullscreen(!fullscreen);
appWindow.setFullscreen(!fullscreen).then();
});
});