-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Resizing glitch on custom titlebar click #2549
Comments
Just wanted to chime in with a similar bug on macOS with similar configuration (
Untitled-optim.movNote that the controls seen in the video are not native controls. |
Want to also pitch in a resizing mouse cursor glitch using |
@BenJeau for hovering it is fixed in the next release but once the drag starts, it will revert back. |
I can't reproduce this anymore, please upgrade to latest tauri and reopen if you still encounter the bug. |
I still have this issue on |
It still happens on v1.1.1 (compiling on release or debug doesn't make a difference) 2022-09-17.11-20-22.mp4 |
I have a similar problem video.mp4 |
I also am experiencing the same behavior. No clue how to approach fixing it. At the moment I'm hoping to somehow find a way to add some kind of resize-handle to a corner of the window. |
@Tmktahu I managed to fix it a lil video.2.mp4Codeexport function Projects() {
const ctx = useAppContext()
function windowMove(e: MouseEvent, isMaximized: boolean) {
const target = e.target as HTMLDivElement
if (target.dataset.whdnl == null) return
if (!isMaximized) {
const size = (e.target as HTMLDivElement).getBoundingClientRect()
if (e.pageX < size.left + 5 || e.pageX > size.right - 5) return
if (e.pageY < size.top + 5 || e.pageY > size.bottom - 5) return
}
appWindow.startDragging()
}
return (
<div class="projects-page" onMouseDown={(e) => windowMove(e, ctx.app.isMaximized)} data-whdnl>
<div class="titlebar" data-whdnl>
<TitlebarButtons />
</div>
<div class="top-container noselect" data-whdnl>
<div class="title" data-whdnl>
CSV TRANSLATOR
</div>
</div>
<div class="main-container noselect" data-whdnl>
<div class="column" data-whdnl>
<div class="title" data-whdnl>
Recent
</div>
</div>
<div class="column" data-whdnl>
<div class="title" data-whdnl>
Get started
</div>
</div>
</div>
</div>
)
} |
Describe the bug
On Windows clicking on an edge of a custom titlebar (
data-tauri-drag-region
region), when the resize cursor appears, triggers a resize animation and double clicking triggers a weird change of the window's position and size. After that the app gets unresponsive.To Reproduce
"decorations": false
and a custom titlebar made withdata-tauri-drag-region
attribute.Screenshots
Steps 2 and 3 demonstration:
Platform and Versions:
Additional context
I couldn't reproduce the issue on Wry
custom_titlebar
example. A couple of people in Discord managed to reproduce the issue on Tauri.The text was updated successfully, but these errors were encountered: