@nativescript-community/ui-material-slider
Advanced tools
Comparing version 7.0.24 to 7.0.25
@@ -6,2 +6,10 @@ # Change Log | ||
## [7.0.25](https://github.com/nativescript-community/ui-material-components/compare/v7.0.24...v7.0.25) (2022-07-19) | ||
**Note:** Version bump only for package @nativescript-community/ui-material-slider | ||
## [7.0.24](https://github.com/nativescript-community/ui-material-components/compare/v7.0.23...v7.0.24) (2022-06-24) | ||
@@ -8,0 +16,0 @@ |
{ | ||
"name": "@nativescript-community/ui-material-slider", | ||
"version": "7.0.24", | ||
"version": "7.0.25", | ||
"description": "Material Design Sliders allow users to make selections from a range of values.", | ||
@@ -49,5 +49,5 @@ "main": "./slider", | ||
"dependencies": { | ||
"@nativescript-community/ui-material-core": "^7.0.24" | ||
"@nativescript-community/ui-material-core": "^7.0.25" | ||
}, | ||
"gitHead": "f889849cd6c37c56cebe7d1ce71577e9912237b4" | ||
"gitHead": "599b3197198993cb850c2bc3a15dab09c291e82b" | ||
} |
@@ -59,3 +59,4 @@ import { elevationProperty, rippleColorProperty, themer } from '@nativescript-community/ui-material-core'; | ||
if (this.stepSize !== 0) { | ||
this.nativeViewProtected.numberOfDiscreteValues = (this.maxValue - this.minValue) / value; | ||
const valuesCount = this.maxValue - this.minValue + 1; | ||
this.nativeViewProtected.numberOfDiscreteValues = Math.ceil(valuesCount / value); | ||
} | ||
@@ -66,3 +67,4 @@ } | ||
if (this.stepSize !== 0) { | ||
this.nativeViewProtected.numberOfDiscreteValues = (this.maxValue - this.minValue) / value; | ||
const valuesCount = this.maxValue - this.minValue + 1; | ||
this.nativeViewProtected.numberOfDiscreteValues = Math.ceil(valuesCount / value); | ||
} | ||
@@ -79,3 +81,4 @@ } | ||
this.nativeViewProtected.discrete = true; | ||
this.nativeViewProtected.numberOfDiscreteValues = (this.maxValue - this.minValue) / value; | ||
const valuesCount = this.maxValue - this.minValue + 1; | ||
this.nativeViewProtected.numberOfDiscreteValues = Math.ceil(valuesCount / value); | ||
this.nativeViewProtected.shouldDisplayDiscreteValueLabel = false; | ||
@@ -82,0 +85,0 @@ } |
Sorry, the diff of this file is not supported yet
107172
500