Fix build with debug feature
This commit is contained in:
parent
f70d33d3cb
commit
53de98a068
1 changed files with 12 additions and 6 deletions
|
|
@ -985,13 +985,19 @@ impl State {
|
||||||
if self.common.egui.state.wants_pointer() {
|
if self.common.egui.state.wants_pointer() {
|
||||||
self.common.egui.state.handle_pointer_axis(
|
self.common.egui.state.handle_pointer_axis(
|
||||||
event
|
event
|
||||||
.amount_discrete(Axis::Horizontal)
|
.amount_v120(Axis::Horizontal)
|
||||||
.or_else(|| event.amount(Axis::Horizontal).map(|x| x * 3.0))
|
.or_else(|| {
|
||||||
.unwrap_or(0.0),
|
event.amount(Axis::Horizontal).map(|x| x * 3.0 * 120.0)
|
||||||
|
})
|
||||||
|
.unwrap_or(0.0)
|
||||||
|
/ 120.0,
|
||||||
event
|
event
|
||||||
.amount_discrete(Axis::Vertical)
|
.amount_v120(Axis::Vertical)
|
||||||
.or_else(|| event.amount(Axis::Vertical).map(|x| x * 3.0))
|
.or_else(|| {
|
||||||
.unwrap_or(0.0),
|
event.amount(Axis::Vertical).map(|x| x * 3.0 * 120.0)
|
||||||
|
})
|
||||||
|
.unwrap_or(0.0)
|
||||||
|
/ 120.0,
|
||||||
);
|
);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue