mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 07:35:40 +00:00
gesture: [API] rename ClickType to ClickKind
"Kind" is the Go idiomatic name for distinguishing structs outside of the type system. Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
+2
-2
@@ -238,8 +238,8 @@ func (e *Editor) processPointer(gtx layout.Context) {
|
||||
switch evt := evt.(type) {
|
||||
case gesture.ClickEvent:
|
||||
switch {
|
||||
case evt.Type == gesture.TypePress && evt.Source == pointer.Mouse,
|
||||
evt.Type == gesture.TypeClick && evt.Source != pointer.Mouse:
|
||||
case evt.Kind == gesture.KindPress && evt.Source == pointer.Mouse,
|
||||
evt.Kind == gesture.KindClick && evt.Source != pointer.Mouse:
|
||||
prevCaretPos, _ := e.text.Selection()
|
||||
e.blinkStart = gtx.Now
|
||||
e.text.MoveCoord(image.Point{
|
||||
|
||||
Reference in New Issue
Block a user