diff options
| author | Michael Foiani <sotech117@michaels-mbp-5.devices.brown.edu> | 2022-06-15 13:50:33 -0400 |
|---|---|---|
| committer | Michael Foiani <sotech117@michaels-mbp-5.devices.brown.edu> | 2022-06-15 13:50:33 -0400 |
| commit | 5972716e64fd9a006fa2139a40b03c21b503dd04 (patch) | |
| tree | e495f5661f848790d8f281d272704f3275727952 /src/client/views | |
| parent | bd35489c33501ff465e6ddd3cb943a748bfe546e (diff) | |
fix small disposer bug and reintroduce pausing on interaction
Diffstat (limited to 'src/client/views')
| -rw-r--r-- | src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx b/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx index 3c5a42b7d..7db3b1482 100644 --- a/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx +++ b/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx @@ -1009,7 +1009,7 @@ export class CollectionFreeFormView extends CollectionSubView<Partial<collection // if (Doc.UserDoc()?.presentationMode === 'recording') { // // RecordingApi.Instance.setRecordingFFView(this); // console.log('setRecordingFFView', this); - // } + // } // TODO: make this based off the specific recording FFView // (Doc.UserDoc()?.presentationMode === 'none' || Doc.UserDoc()?.presentationMode === 'watching') && RecordingApi.Instance.setPlayFFView(this); // if (Doc.UserDoc()?.presentationMode === 'watching') { @@ -1017,6 +1017,8 @@ export class CollectionFreeFormView extends CollectionSubView<Partial<collection // Doc.UserDoc().presentationMode = 'none'; // // RecordingApi.Instance.pauseMovements() // } + // this is the easiest way to do this -> will talk with Bob about using mobx to do this to remove this line of code. + if (Doc.UserDoc()?.presentationMode === 'watching') RecordingApi.Instance.pauseFromInteraction(); if (!this.isAnnotationOverlay && clamp) { // this section wraps the pan position, horizontally and/or vertically whenever the content is panned out of the viewing bounds |
