Skip to content

Commit 59d1b14

Browse files
committed
fix: suppress snapshot capture during touchpad scrolling
1 parent b509d81 commit 59d1b14

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

editor/workspace.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2042,6 +2042,11 @@ func (ws *Workspace) getSnapshot() {
20422042
if !win.IsVisible() {
20432043
return true
20442044
}
2045+
2046+
// Suppress snapshot capture during touchpad scrolling
2047+
if win.scrollPixels[1] != 0 || win.lastScrollphase != core.Qt__ScrollEnd {
2048+
return true
2049+
}
20452050
win.grabScreenSnapshot()
20462051

20472052
return true

0 commit comments

Comments
 (0)