Heyo!
Does anyone has this same problem?
I am making my own titlebar, however when am trying to drag or click on the titlebar the window the app crashes with this error msg:
VITE v5.3.5 ready in 1462 ms
➜ Local: http://localhost:1420/
➜ Network: use --host to expose
Info Watching D:\tauriV2\src-tauri for changes...
Compiling mist v0.0.0 (D:\tauriV2\src-tauri)
Finished `dev` profile [unoptimized + debuginfo] target(s) in 11.08s
Tauri Devtools v2.0.0-beta.5
→ Local: https://devtools.crabnebula.dev/dash/x/x
thread 'main' has overflowed its stack
ELIFECYCLE Command failed with exit code 4294967295.
ELIFECYCLE Command failed with exit code 3221225725.
The HTML Code:
<div data-tauri-drag-region class="titlebar">
<div class="titlebar-button" id="titlebar-minimize">
<img
src="https://api.iconify.design/mdi:window-minimize.svg"
alt="minimize"
/>
</div>
<div class="titlebar-button" id="titlebar-maximize">
<img
src="https://api.iconify.design/mdi:window-maximize.svg"
alt="maximize"
/>
</div>
<div class="titlebar-button" id="titlebar-close">
<img src="https://api.iconify.design/mdi:close.svg" alt="close" />
</div>
</div>
<style>
.titlebar {
height: 30px;
background: #329ea3;
user-select: none;
display: flex;
justify-content: flex-end;
position: fixed;
top: 0;
left: 0;
right: 0;
}
.titlebar-button {
display: inline-flex;
justify-content: center;
align-items: center;
width: 30px;
height: 30px;
user-select: none;
-webkit-user-select: none;
}
.titlebar-button:hover {
background: #5bbec3;
}
</style>
