mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-04 17:05:38 +00:00
ui/gesture: switch Click to return all events
Simpler and more ergonomic for clients. Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
+1
-5
@@ -97,11 +97,7 @@ func (e *Editor) Next() (EditorEvent, bool) {
|
||||
e.scrollOff.Y += sdist
|
||||
soff = e.scrollOff.Y
|
||||
}
|
||||
for {
|
||||
evt, ok := e.clicker.Next(e.Inputs)
|
||||
if !ok {
|
||||
break
|
||||
}
|
||||
for _, evt := range e.clicker.Events(e.Inputs) {
|
||||
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