mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-12-27 00:12:55 +03:00
make spinner buttons more responsive
This commit is contained in:
parent
0f608da151
commit
d5e3c3740c
@ -73,6 +73,7 @@ impl WidgetImpl for Spinner {
|
|||||||
if self.current != self.high {
|
if self.current != self.high {
|
||||||
self.current += 1;
|
self.current += 1;
|
||||||
}
|
}
|
||||||
|
ctx.no_op_event(true, |ctx| self.up.event(ctx, output));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -81,6 +82,7 @@ impl WidgetImpl for Spinner {
|
|||||||
if self.current != self.low {
|
if self.current != self.low {
|
||||||
self.current -= 1;
|
self.current -= 1;
|
||||||
}
|
}
|
||||||
|
ctx.no_op_event(true, |ctx| self.down.event(ctx, output));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user