Skip to content

Commit

Permalink
round slider properties in RangeFilterState
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksander Chlebowski committed Feb 10, 2023
1 parent 470f0b6 commit 27910b1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions R/FilterStateRange.R
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,13 @@ RangeFilterState <- R6::R6Class( # nolint

if (identical(diff(x_range), 0)) {
private$set_choices(x_range)
private$slider_ticks <- x_range
private$slider_ticks <- signif(x_range, digits = 10)
private$slider_step <- NULL
self$set_selected(x_range)
} else {
private$set_choices(range(x_pretty))
private$slider_ticks <- x_pretty
private$slider_step <- private$get_pretty_range_step(x_pretty)
private$slider_ticks <- signif(x_pretty, digits = 10)
private$slider_step <- signif(private$get_pretty_range_step(x_pretty), digits = 10)
self$set_selected(range(x_pretty))
}

Expand Down

0 comments on commit 27910b1

Please sign in to comment.