@@ -388,19 +388,15 @@ export class IgxSliderComponent implements
388
388
@Input ( )
389
389
@DeprecateProperty ( `IgxSliderComponent \`isContinuous\` property is deprecated.\nUse \`continuous\` instead.` )
390
390
public get isContinuous ( ) : boolean {
391
- return this . _countinuous ;
391
+ return this . continuous ;
392
392
}
393
393
394
394
/**
395
395
* @hidden
396
396
* @internal
397
397
*/
398
398
public set isContinuous ( continuous : boolean ) {
399
- if ( this . labelsViewEnabled ) {
400
- return ;
401
- }
402
-
403
- this . _countinuous = continuous ;
399
+ this . continuous = continuous ;
404
400
}
405
401
406
402
/**
@@ -934,12 +930,12 @@ export class IgxSliderComponent implements
934
930
*/
935
931
public findClosestThumb ( event ) {
936
932
if ( this . isRange ) {
937
- this . closestHandle ( event . x ) ;
933
+ this . closestHandle ( event . clientX ) ;
938
934
} else {
939
935
this . thumbTo . nativeElement . focus ( ) ;
940
936
}
941
937
942
- this . update ( event . x ) ;
938
+ this . update ( event . clientX ) ;
943
939
944
940
event . preventDefault ( ) ;
945
941
}
@@ -1016,7 +1012,7 @@ export class IgxSliderComponent implements
1016
1012
private closestHandle ( mouseX ) {
1017
1013
const fromOffset = this . thumbFrom . nativeElement . offsetLeft + this . thumbFrom . nativeElement . offsetWidth / 2 ;
1018
1014
const toOffset = this . thumbTo . nativeElement . offsetLeft + this . thumbTo . nativeElement . offsetWidth / 2 ;
1019
- const xPointer = mouseX - this . slider . nativeElement . getBoundingClientRect ( ) . x ;
1015
+ const xPointer = mouseX - this . slider . nativeElement . getBoundingClientRect ( ) . left ;
1020
1016
const match = this . closestTo ( xPointer , [ fromOffset , toOffset ] ) ;
1021
1017
1022
1018
if ( match === fromOffset ) {
0 commit comments