mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-06 01:45:36 +00:00
ui/input: rename Queue to Router and Events to Queue
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -81,7 +81,7 @@ func (c *Click) Add(ops *ui.Ops) {
|
||||
op.Add(ops)
|
||||
}
|
||||
|
||||
func (c *Click) Events(q input.Events) []ClickEvent {
|
||||
func (c *Click) Events(q input.Queue) []ClickEvent {
|
||||
var events []ClickEvent
|
||||
for _, evt := range q.Events(c) {
|
||||
e, ok := evt.(pointer.Event)
|
||||
@@ -130,7 +130,7 @@ func (s *Scroll) Dragging() bool {
|
||||
return s.dragging
|
||||
}
|
||||
|
||||
func (s *Scroll) Scroll(cfg ui.Config, q input.Events, axis Axis) int {
|
||||
func (s *Scroll) Scroll(cfg ui.Config, q input.Queue, axis Axis) int {
|
||||
if s.axis != axis {
|
||||
s.axis = axis
|
||||
return 0
|
||||
|
||||
Reference in New Issue
Block a user