Skip to content

Commit

Permalink
fix(platforms/windows): Change default minimum and maximum for range …
Browse files Browse the repository at this point in the history
…value pattern (#166)
  • Loading branch information
mwcampbell committed Nov 24, 2022
1 parent ca37ef1 commit 176ec58
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions platforms/windows/src/node.rs
Expand Up @@ -377,15 +377,11 @@ impl<'a> NodeWrapper<'a> {
}

fn min_numeric_value(&self) -> f64 {
self.node_state()
.min_numeric_value()
.unwrap_or(std::f64::MIN)
self.node_state().min_numeric_value().unwrap_or(0.0)
}

fn max_numeric_value(&self) -> f64 {
self.node_state()
.max_numeric_value()
.unwrap_or(std::f64::MAX)
self.node_state().max_numeric_value().unwrap_or(0.0)
}

fn numeric_value_step(&self) -> f64 {
Expand Down

0 comments on commit 176ec58

Please sign in to comment.