makethisbetter 1.26.0 → 1.26.1
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.
- package/README.md +1 -1
- package/dist/makethisbetter.cjs +1 -1
- package/dist/makethisbetter.cjs.map +1 -1
- package/dist/makethisbetter.esm.js +5 -5
- package/dist/makethisbetter.esm.js.map +1 -1
- package/dist/makethisbetter.js +1 -1
- package/dist/makethisbetter.js.map +1 -1
- package/dist/makethisbetter.standalone.js +5 -5
- package/dist/makethisbetter.standalone.js.map +1 -1
- package/dist/widget/controller.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/widget/controller.ts +4 -2
|
@@ -3746,7 +3746,7 @@ class Rn {
|
|
|
3746
3746
|
return this.toolbar !== null;
|
|
3747
3747
|
}
|
|
3748
3748
|
mountAnnotationChrome() {
|
|
3749
|
-
Re()
|
|
3749
|
+
Re();
|
|
3750
3750
|
const t = w();
|
|
3751
3751
|
this.toolbar = new ui(
|
|
3752
3752
|
this.shadow,
|
|
@@ -3792,7 +3792,7 @@ class Rn {
|
|
|
3792
3792
|
this.recordingManager?.destroy(), this.recordingManager = null;
|
|
3793
3793
|
}
|
|
3794
3794
|
mountDrawBar() {
|
|
3795
|
-
this.drawBar = new Ii(this.shadow, {
|
|
3795
|
+
this.engageScrollLock(), this.drawBar = new Ii(this.shadow, {
|
|
3796
3796
|
messages: this.messages,
|
|
3797
3797
|
onUndo: () => this.handleDrawUndoRedo("undo"),
|
|
3798
3798
|
onRedo: () => this.handleDrawUndoRedo("redo"),
|
|
@@ -3809,7 +3809,7 @@ class Rn {
|
|
|
3809
3809
|
* tap, not the whole session.
|
|
3810
3810
|
*/
|
|
3811
3811
|
mountDrawSheet() {
|
|
3812
|
-
this.drawSheet = new Ot(this.shadow, {
|
|
3812
|
+
this.engageScrollLock(), this.drawSheet = new Ot(this.shadow, {
|
|
3813
3813
|
targetName: this.messages.annotation.drawing,
|
|
3814
3814
|
x: window.innerWidth / 2,
|
|
3815
3815
|
y: window.innerHeight / 2,
|
|
@@ -3827,7 +3827,7 @@ class Rn {
|
|
|
3827
3827
|
this.session && this.drawBar?.setUndoRedo(this.session.canUndoDraw(), this.session.canRedoDraw());
|
|
3828
3828
|
}
|
|
3829
3829
|
cancelDraw() {
|
|
3830
|
-
this.session?.clearDraw(), this.teardownDrawBar(), this.drawSheet?.destroy(), this.drawSheet = null, this.dim?.destroy(), this.dim = null, this.submittingUi = null, this.transitionTo(new T(this));
|
|
3830
|
+
this.session?.clearDraw(), this.releaseScrollLock(), this.teardownDrawBar(), this.drawSheet?.destroy(), this.drawSheet = null, this.dim?.destroy(), this.dim = null, this.submittingUi = null, this.transitionTo(new T(this));
|
|
3831
3831
|
}
|
|
3832
3832
|
teardownDrawBar() {
|
|
3833
3833
|
this.drawBar?.destroy(), this.drawBar = null;
|
|
@@ -3874,7 +3874,7 @@ class Rn {
|
|
|
3874
3874
|
* and draw again, rather than facing a dead overlay under a leftover scrim.
|
|
3875
3875
|
*/
|
|
3876
3876
|
dismissNotePopup() {
|
|
3877
|
-
this.pinPopup?.destroy(), this.pinPopup = null, this.dim?.destroy(), this.dim = null, this.submittingUi = null, this.clearCurrentAnnotation(), this.destroySession();
|
|
3877
|
+
this.pinPopup?.destroy(), this.pinPopup = null, this.dim?.destroy(), this.dim = null, this.releaseScrollLock(), this.submittingUi = null, this.clearCurrentAnnotation(), this.destroySession();
|
|
3878
3878
|
}
|
|
3879
3879
|
engageScrollLock() {
|
|
3880
3880
|
this.scrollLock || (this.scrollLock = di());
|