@nativescript-community/ui-material-slider
Advanced tools
Comparing version 7.2.70 to 7.2.71
{ | ||
"name": "@nativescript-community/ui-material-slider", | ||
"version": "7.2.70", | ||
"version": "7.2.71", | ||
"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.2.70" | ||
"@nativescript-community/ui-material-core": "^7.2.71" | ||
}, | ||
"gitHead": "ca426777b4d884b1e9b5220e27c99840b953d6ca" | ||
"gitHead": "e6076200bd06401a5e915a8dcda6fe3d90caff35" | ||
} |
@@ -77,6 +77,8 @@ import { cssProperty, rippleColorAlphaProperty, rippleColorProperty } from '@nativescript-community/ui-material-core'; | ||
const nativeView = this.nativeViewProtected; | ||
const that = new WeakRef(this); | ||
this.listener = new com.google.android.material.slider.Slider.OnChangeListener({ | ||
onValueChange: (param0, value, fromUser) => { | ||
if (fromUser) { | ||
valueProperty.nativeValueChange(this, value); | ||
const owner = that?.get(); | ||
if (owner && fromUser) { | ||
valueProperty.nativeValueChange(owner, value); | ||
} | ||
@@ -106,4 +108,2 @@ } | ||
this[trackBackgroundColorProperty.setNative](null); | ||
// } else { | ||
// this[trackBackgroundColorProperty.setNative](this.trackBackgroundColor); | ||
} | ||
@@ -110,0 +110,0 @@ } |
Sorry, the diff of this file is not supported yet
55367