mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-04 08:55:35 +00:00
ui/gesture: convert Click to single step events for symmetry
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
+5
-1
@@ -90,7 +90,11 @@ func (e *Editor) Next() (EditorEvent, bool) {
|
||||
soff = e.scrollOff.Y
|
||||
}
|
||||
scrollTo := false
|
||||
for _, evt := range e.clicker.Update(e.Inputs) {
|
||||
for {
|
||||
evt, ok := e.clicker.Next(e.Inputs)
|
||||
if !ok {
|
||||
break
|
||||
}
|
||||
switch {
|
||||
case evt.Type == gesture.TypePress && evt.Source == pointer.Mouse,
|
||||
evt.Type == gesture.TypeClick && evt.Source == pointer.Touch:
|
||||
|
||||
Reference in New Issue
Block a user