ui/input: rename Queue to Router and Events to Queue

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2019-07-12 00:03:52 +02:00
parent 6a4ba30c96
commit a22bcfc88c
5 changed files with 14 additions and 14 deletions
+2 -2
View File
@@ -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