make spinner buttons more responsive

This commit is contained in:
Dustin Carlino 2020-06-02 10:15:29 -07:00
parent 0f608da151
commit d5e3c3740c

View File

@ -73,6 +73,7 @@ impl WidgetImpl for Spinner {
if self.current != self.high {
self.current += 1;
}
ctx.no_op_event(true, |ctx| self.up.event(ctx, output));
return;
}
@ -81,6 +82,7 @@ impl WidgetImpl for Spinner {
if self.current != self.low {
self.current -= 1;
}
ctx.no_op_event(true, |ctx| self.down.event(ctx, output));
}
}