File tree Expand file tree Collapse file tree
core/src/components/range Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments