Support onReset and onMove

Signed-off-by: RMidhunSuresh <hi@midhun.dev>
This commit is contained in:
RMidhunSuresh 2021-10-28 11:44:09 +05:30
parent 20616f5983
commit b979e11ef5

View file

@ -59,7 +59,9 @@ export class TimelineViewModel extends ViewModel {
const subscription = { const subscription = {
onAdd: (idx, tile) => checkForUpdate(idx, tile), onAdd: (idx, tile) => checkForUpdate(idx, tile),
onUpdate: (idx, tile) => checkForUpdate(idx, tile), onUpdate: (idx, tile) => checkForUpdate(idx, tile),
onRemove: (idx, tile) => checkForUpdate(idx, tile) onRemove: (idx, tile) => checkForUpdate(idx, tile),
onMove: (idx, tile) => checkForUpdate(idx, tile),
onReset: (idx, tile) => checkForUpdate(idx, tile)
}; };
this.tiles.subscribe(subscription); this.tiles.subscribe(subscription);
const gapResult = await gapPromise; const gapResult = await gapPromise;