mirror of
https://github.com/vsariola/sointu.git
synced 2025-05-28 03:10:24 -04:00
feat(gioui): add grab cursor to DragList
This commit is contained in:
parent
d55e9e9880
commit
442715334e
@ -185,6 +185,7 @@ func (s *FilledDragListStyle) Layout(gtx C) D {
|
|||||||
Types: pointer.Drag | pointer.Press | pointer.Release,
|
Types: pointer.Drag | pointer.Press | pointer.Release,
|
||||||
Grab: s.dragList.drag,
|
Grab: s.dragList.drag,
|
||||||
}.Add(gtx.Ops)
|
}.Add(gtx.Ops)
|
||||||
|
pointer.CursorNameOp{Name: pointer.CursorGrab}.Add(gtx.Ops)
|
||||||
}
|
}
|
||||||
return layout.Dimensions{Size: gtx.Constraints.Min}
|
return layout.Dimensions{Size: gtx.Constraints.Min}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user