@netless/fastboard-ui 0.3.0-canary.3 → 0.3.0-canary.4

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/dist/index.js CHANGED
@@ -3544,6 +3544,13 @@ var tippy = function(node, props) {
3544
3544
  }
3545
3545
  };
3546
3546
  };
3547
+ function tippy_hide_all() {
3548
+ document.querySelectorAll("[data-tippy-root]").forEach((el) => {
3549
+ const instance59 = el._tippy;
3550
+ if (instance59)
3551
+ instance59.hide();
3552
+ });
3553
+ }
3547
3554
  var tippy_menu = {
3548
3555
  delay: 0,
3549
3556
  placement: "right-start",
@@ -9839,6 +9846,8 @@ function create_fragment57(ctx) {
9839
9846
  let div1_class_value;
9840
9847
  let div2_class_value;
9841
9848
  let current;
9849
+ let mounted;
9850
+ let dispose;
9842
9851
  playercontrol = new PlayerControl_default({
9843
9852
  props: {
9844
9853
  player: ctx[0],
@@ -9866,6 +9875,10 @@ function create_fragment57(ctx) {
9866
9875
  append(div2, div1);
9867
9876
  mount_component(playercontrol, div1, null);
9868
9877
  current = true;
9878
+ if (!mounted) {
9879
+ dispose = listen(div0, "touchstart", tippy_hide_all, true);
9880
+ mounted = true;
9881
+ }
9869
9882
  },
9870
9883
  p(ctx2, [dirty]) {
9871
9884
  const playercontrol_changes = {};
@@ -9895,6 +9908,8 @@ function create_fragment57(ctx) {
9895
9908
  detach(div2);
9896
9909
  ctx[5](null);
9897
9910
  destroy_component(playercontrol);
9911
+ mounted = false;
9912
+ dispose();
9898
9913
  }
9899
9914
  };
9900
9915
  }
@@ -9969,6 +9984,8 @@ function create_fragment58(ctx) {
9969
9984
  let div3_class_value;
9970
9985
  let div4_class_value;
9971
9986
  let current;
9987
+ let mounted;
9988
+ let dispose;
9972
9989
  toolbar = new Toolbar_default({
9973
9990
  props: {
9974
9991
  app: ctx[0],
@@ -10035,6 +10052,10 @@ function create_fragment58(ctx) {
10035
10052
  append(div4, div3);
10036
10053
  mount_component(pagecontrol, div3, null);
10037
10054
  current = true;
10055
+ if (!mounted) {
10056
+ dispose = listen(div0, "touchstart", tippy_hide_all, true);
10057
+ mounted = true;
10058
+ }
10038
10059
  },
10039
10060
  p(ctx2, [dirty]) {
10040
10061
  const toolbar_changes = {};
@@ -10097,6 +10118,8 @@ function create_fragment58(ctx) {
10097
10118
  destroy_component(redoundo);
10098
10119
  destroy_component(zoomcontrol);
10099
10120
  destroy_component(pagecontrol);
10121
+ mounted = false;
10122
+ dispose();
10100
10123
  }
10101
10124
  };
10102
10125
  }