fix(web): subview construction for terminated sources

This commit is contained in:
Joshua A. Horton 2023-11-21 12:54:24 +07:00
parent 83bc0da535
commit b3714a02e8

View file

@ -371,6 +371,12 @@ export class GestureSourceSubview<HoveredItemType, StateToken = any> extends Ges
baseSource.path.off('invalidated', invalidatedHook);
baseSource.path.off('step', stepHook);
}
// If the path was already completed, that should be reflected here, too.
if(baseSource.isPathComplete) {
this.path.terminate((baseSource.path.wasCancelled));
this.disconnect();
}
}
private get recognizerTranslation() {