Skip to content

Commit a808736

Browse files
committed
style(range): add comments explaining variables
1 parent 33b834a commit a808736

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

core/src/components/range/range.tsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,18 @@ export class Range implements ComponentInterface {
7575
private contentEl: HTMLElement | null = null;
7676
private initialContentScrollY = true;
7777
private originalIonInput?: EventEmitter<RangeChangeEventDetail>;
78+
/**
79+
* Used to avoid setting the focused state on click or tap. The focused
80+
* state is only set when the focus comes from the keyboard (e.g. Tab).
81+
* This is set to true on pointer down (mouse/touch).
82+
*/
7883
private focusFromPointer = false;
84+
/**
85+
* Observes class changes on the knob handles to keep the activatedKnob
86+
* state in sync with the ion-activated class. This is necessary to
87+
* determine which knob the user is dragging when using dual knobs and
88+
* apply the activated part correctly.
89+
*/
7990
private activatedObserver?: MutationObserver;
8091

8192
@Element() el!: HTMLIonRangeElement;

0 commit comments

Comments
 (0)