@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.
@@ -3548,6 +3548,13 @@ var tippy = function(node, props) {
3548
3548
  }
3549
3549
  };
3550
3550
  };
3551
+ function tippy_hide_all() {
3552
+ document.querySelectorAll("[data-tippy-root]").forEach((el) => {
3553
+ const instance59 = el._tippy;
3554
+ if (instance59)
3555
+ instance59.hide();
3556
+ });
3557
+ }
3551
3558
  var tippy_menu = {
3552
3559
  delay: 0,
3553
3560
  placement: "right-start",
@@ -10020,6 +10027,7 @@ import {
10020
10027
  element as element13,
10021
10028
  init as init57,
10022
10029
  insert as insert56,
10030
+ listen as listen7,
10023
10031
  mount_component as mount_component9,
10024
10032
  safe_not_equal as safe_not_equal57,
10025
10033
  space as space10,
@@ -10037,6 +10045,8 @@ function create_fragment57(ctx) {
10037
10045
  let div1_class_value;
10038
10046
  let div2_class_value;
10039
10047
  let current;
10048
+ let mounted;
10049
+ let dispose;
10040
10050
  playercontrol = new PlayerControl_default({
10041
10051
  props: {
10042
10052
  player: ctx[0],
@@ -10064,6 +10074,10 @@ function create_fragment57(ctx) {
10064
10074
  append56(div2, div1);
10065
10075
  mount_component9(playercontrol, div1, null);
10066
10076
  current = true;
10077
+ if (!mounted) {
10078
+ dispose = listen7(div0, "touchstart", tippy_hide_all, true);
10079
+ mounted = true;
10080
+ }
10067
10081
  },
10068
10082
  p(ctx2, [dirty]) {
10069
10083
  const playercontrol_changes = {};
@@ -10093,6 +10107,8 @@ function create_fragment57(ctx) {
10093
10107
  detach56(div2);
10094
10108
  ctx[5](null);
10095
10109
  destroy_component9(playercontrol);
10110
+ mounted = false;
10111
+ dispose();
10096
10112
  }
10097
10113
  };
10098
10114
  }
@@ -10158,6 +10174,7 @@ import {
10158
10174
  element as element14,
10159
10175
  init as init58,
10160
10176
  insert as insert57,
10177
+ listen as listen8,
10161
10178
  mount_component as mount_component10,
10162
10179
  safe_not_equal as safe_not_equal58,
10163
10180
  space as space11,
@@ -10185,6 +10202,8 @@ function create_fragment58(ctx) {
10185
10202
  let div3_class_value;
10186
10203
  let div4_class_value;
10187
10204
  let current;
10205
+ let mounted;
10206
+ let dispose;
10188
10207
  toolbar = new Toolbar_default({
10189
10208
  props: {
10190
10209
  app: ctx[0],
@@ -10251,6 +10270,10 @@ function create_fragment58(ctx) {
10251
10270
  append57(div4, div3);
10252
10271
  mount_component10(pagecontrol, div3, null);
10253
10272
  current = true;
10273
+ if (!mounted) {
10274
+ dispose = listen8(div0, "touchstart", tippy_hide_all, true);
10275
+ mounted = true;
10276
+ }
10254
10277
  },
10255
10278
  p(ctx2, [dirty]) {
10256
10279
  const toolbar_changes = {};
@@ -10313,6 +10336,8 @@ function create_fragment58(ctx) {
10313
10336
  destroy_component10(redoundo);
10314
10337
  destroy_component10(zoomcontrol);
10315
10338
  destroy_component10(pagecontrol);
10339
+ mounted = false;
10340
+ dispose();
10316
10341
  }
10317
10342
  };
10318
10343
  }