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.
@@ -3746,7 +3746,7 @@ class Qr {
3746
3746
  return this.toolbar !== null;
3747
3747
  }
3748
3748
  mountAnnotationChrome() {
3749
- de(), this.engageScrollLock();
3749
+ de();
3750
3750
  const t = y();
3751
3751
  this.toolbar = new Fe(
3752
3752
  this.shadow,
@@ -3792,7 +3792,7 @@ class Qr {
3792
3792
  this.recordingManager?.destroy(), this.recordingManager = null;
3793
3793
  }
3794
3794
  mountDrawBar() {
3795
- this.drawBar = new ei(this.shadow, {
3795
+ this.engageScrollLock(), this.drawBar = new ei(this.shadow, {
3796
3796
  messages: this.messages,
3797
3797
  onUndo: () => this.handleDrawUndoRedo("undo"),
3798
3798
  onRedo: () => this.handleDrawUndoRedo("redo"),
@@ -3809,7 +3809,7 @@ class Qr {
3809
3809
  * tap, not the whole session.
3810
3810
  */
3811
3811
  mountDrawSheet() {
3812
- this.drawSheet = new Tt(this.shadow, {
3812
+ this.engageScrollLock(), this.drawSheet = new Tt(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 Qr {
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 k(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 k(this));
3831
3831
  }
3832
3832
  teardownDrawBar() {
3833
3833
  this.drawBar?.destroy(), this.drawBar = null;
@@ -3874,7 +3874,7 @@ class Qr {
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 = Re());