@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 +23 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +23 -0
- package/dist/index.mjs.map +1 -1
- package/dist/index.svelte.mjs +25 -0
- package/dist/index.svelte.mjs.map +1 -1
- package/package.json +3 -3
- package/src/components/Fastboard/Fastboard.svelte +2 -1
- package/src/components/Fastboard/ReplayFastboard.svelte +2 -1
package/dist/index.mjs
CHANGED
|
@@ -3506,6 +3506,13 @@ var tippy = function(node, props) {
|
|
|
3506
3506
|
}
|
|
3507
3507
|
};
|
|
3508
3508
|
};
|
|
3509
|
+
function tippy_hide_all() {
|
|
3510
|
+
document.querySelectorAll("[data-tippy-root]").forEach((el) => {
|
|
3511
|
+
const instance59 = el._tippy;
|
|
3512
|
+
if (instance59)
|
|
3513
|
+
instance59.hide();
|
|
3514
|
+
});
|
|
3515
|
+
}
|
|
3509
3516
|
var tippy_menu = {
|
|
3510
3517
|
delay: 0,
|
|
3511
3518
|
placement: "right-start",
|
|
@@ -9801,6 +9808,8 @@ function create_fragment57(ctx) {
|
|
|
9801
9808
|
let div1_class_value;
|
|
9802
9809
|
let div2_class_value;
|
|
9803
9810
|
let current;
|
|
9811
|
+
let mounted;
|
|
9812
|
+
let dispose;
|
|
9804
9813
|
playercontrol = new PlayerControl_default({
|
|
9805
9814
|
props: {
|
|
9806
9815
|
player: ctx[0],
|
|
@@ -9828,6 +9837,10 @@ function create_fragment57(ctx) {
|
|
|
9828
9837
|
append(div2, div1);
|
|
9829
9838
|
mount_component(playercontrol, div1, null);
|
|
9830
9839
|
current = true;
|
|
9840
|
+
if (!mounted) {
|
|
9841
|
+
dispose = listen(div0, "touchstart", tippy_hide_all, true);
|
|
9842
|
+
mounted = true;
|
|
9843
|
+
}
|
|
9831
9844
|
},
|
|
9832
9845
|
p(ctx2, [dirty]) {
|
|
9833
9846
|
const playercontrol_changes = {};
|
|
@@ -9857,6 +9870,8 @@ function create_fragment57(ctx) {
|
|
|
9857
9870
|
detach(div2);
|
|
9858
9871
|
ctx[5](null);
|
|
9859
9872
|
destroy_component(playercontrol);
|
|
9873
|
+
mounted = false;
|
|
9874
|
+
dispose();
|
|
9860
9875
|
}
|
|
9861
9876
|
};
|
|
9862
9877
|
}
|
|
@@ -9931,6 +9946,8 @@ function create_fragment58(ctx) {
|
|
|
9931
9946
|
let div3_class_value;
|
|
9932
9947
|
let div4_class_value;
|
|
9933
9948
|
let current;
|
|
9949
|
+
let mounted;
|
|
9950
|
+
let dispose;
|
|
9934
9951
|
toolbar = new Toolbar_default({
|
|
9935
9952
|
props: {
|
|
9936
9953
|
app: ctx[0],
|
|
@@ -9997,6 +10014,10 @@ function create_fragment58(ctx) {
|
|
|
9997
10014
|
append(div4, div3);
|
|
9998
10015
|
mount_component(pagecontrol, div3, null);
|
|
9999
10016
|
current = true;
|
|
10017
|
+
if (!mounted) {
|
|
10018
|
+
dispose = listen(div0, "touchstart", tippy_hide_all, true);
|
|
10019
|
+
mounted = true;
|
|
10020
|
+
}
|
|
10000
10021
|
},
|
|
10001
10022
|
p(ctx2, [dirty]) {
|
|
10002
10023
|
const toolbar_changes = {};
|
|
@@ -10059,6 +10080,8 @@ function create_fragment58(ctx) {
|
|
|
10059
10080
|
destroy_component(redoundo);
|
|
10060
10081
|
destroy_component(zoomcontrol);
|
|
10061
10082
|
destroy_component(pagecontrol);
|
|
10083
|
+
mounted = false;
|
|
10084
|
+
dispose();
|
|
10062
10085
|
}
|
|
10063
10086
|
};
|
|
10064
10087
|
}
|