@tylertech/forge-core 2.2.1 → 2.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -166,17 +166,22 @@ export class RangeMediaObserver extends MediaObserver {
|
|
|
166
166
|
if (!this._isInitialized) {
|
|
167
167
|
return;
|
|
168
168
|
}
|
|
169
|
-
if (value.matches) {
|
|
170
|
-
this._valueQueue.push(name);
|
|
171
|
-
}
|
|
172
169
|
if (!this._isAwaitingQueries) {
|
|
173
170
|
setTimeout(() => {
|
|
174
171
|
this.next([...this._valueQueue]);
|
|
175
172
|
this._valueQueue = [];
|
|
176
173
|
this._isAwaitingQueries = false;
|
|
177
174
|
});
|
|
175
|
+
this._valueQueue = [...this.source];
|
|
178
176
|
this._isAwaitingQueries = true;
|
|
179
177
|
}
|
|
178
|
+
const index = this._valueQueue.findIndex(queued => queued === name);
|
|
179
|
+
if (value.matches && index === -1) {
|
|
180
|
+
this._valueQueue.push(name);
|
|
181
|
+
}
|
|
182
|
+
else if (!value.matches && index > -1) {
|
|
183
|
+
this._valueQueue.splice(index, 1);
|
|
184
|
+
}
|
|
180
185
|
}
|
|
181
186
|
}
|
|
182
187
|
/**
|
package/package.json
CHANGED