Remove optimization that caused scrubbing misbehavior

This commit is contained in:
Dermot Duffy
2024-08-26 20:55:02 -07:00
parent 5ad957f465
commit 8344734e2b
3 changed files with 8 additions and 9 deletions
-7
View File
@@ -678,13 +678,6 @@ export class FrigateCardTimelineCore extends LitElement {
query: mediaQuery,
},
queryExecutorOptions: {
// Reject the new results unless there is something to be gained (i.e. they
// are not a subset of the existing results). Example usecase: On initial
// view load in mini timeline mode, the first 50 events are fetched -- the
// first drag of the timeline should not dispatch new results unless
// something is actually useful (as otherwise it creates a visible 'flicker'
// for the user as the viewer reloads all the media).
rejectResults: (results) => !!view.queryResults?.isSupersetOf(results),
selectResult: {
id:
this.viewManagerEpoch?.manager
+4 -2
View File
@@ -105,13 +105,15 @@ export function contentsChanged(
* @param func The Console func to call.
*/
export function errorToConsole(
e: Error | { message: unknown },
e: Error | { message: unknown } | string,
func: CallableFunction = console.warn,
): void {
if (e instanceof FrigateCardError && e.context) {
func(e, e.context);
} else {
} else if (typeof e === 'object' && 'message' in e) {
func(e.message);
} else {
func(e);
}
}