mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-02 16:06:19 +00:00
ui/gesture,ui/editor: don't focus and show keyboard on touch press
Wait until click for touches. Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
+3
-2
@@ -86,8 +86,9 @@ func (e *Editor) Update(c *ui.Config, pq pointer.Events, kq key.Events) {
|
||||
}
|
||||
scrollTo := false
|
||||
for _, evt := range e.clicker.Update(pq) {
|
||||
switch evt.Type {
|
||||
case gesture.TypePress:
|
||||
switch {
|
||||
case evt.Type == gesture.TypePress && evt.Source == pointer.Mouse,
|
||||
evt.Type == gesture.TypeClick && evt.Source == pointer.Touch:
|
||||
scrollTo = true
|
||||
e.blinkStart = c.Now
|
||||
e.moveCoord(image.Point{
|
||||
|
||||
Reference in New Issue
Block a user