~eliasnaur/gio#446: 
gesture.Drag nested layout.List to scroll always triggers drag event

android demo:

https://go.dev/play/p/Yk0hzgDS30J

gesture.Drag nested layouts.List scrolling always triggers invalid drag events. This causes a slight jitter of a few pixels. Invalid event data should be discarded before valid drag events are confirmed.

https://github.com/gioui/gio/blob/276b7eefdd65bf6eb2326945ef074c827541b8a2/gesture/gesture.go#L411-L413

if diff.X*diff.X+diff.Y*diff.Y > float32(slop*slop) {
	d.grab = true
} else {
	continue
}
Status
REPORTED
Submitter
~beikege
Assigned to
No-one
Submitted
3 months ago
Updated
3 months ago
Labels
No labels applied.

~eliasnaur 3 months ago

Thanks. Can you provide a fix and corresponding test that demonstrates the issue?

CC ~whereswaldon.

~beikege 3 months ago

https://imgur.com/a/XJ0mJbM

Look closely at the border, I'm not sure it's expected behavior.

Register here or Log in to comment, or comment via email.