@netless/fastboard-ui 0.3.4-canary.2 → 0.3.5-canary.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/dist/index.js +43 -21
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +43 -21
- package/dist/index.mjs.map +1 -1
- package/dist/index.svelte.mjs +39 -19
- package/dist/index.svelte.mjs.map +1 -1
- package/package.json +3 -3
- package/src/components/Fastboard/Fastboard.svelte +8 -1
- package/src/components/Fastboard/ReplayFastboard.svelte +8 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@netless/fastboard-ui",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.5-canary.1",
|
|
4
4
|
"description": "The front-end of @netless/fastboard-core.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"svelte": "dist/index.svelte.mjs",
|
|
@@ -10,14 +10,14 @@
|
|
|
10
10
|
],
|
|
11
11
|
"repository": "netless-io/fastboard",
|
|
12
12
|
"peerDependencies": {
|
|
13
|
-
"@netless/fastboard-core": "0.3.
|
|
13
|
+
"@netless/fastboard-core": "0.3.5-canary.1"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"tippy.js": "^6.3.7"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"@netless/esbuild-plugin-inline-sass": "0.1.0",
|
|
20
|
-
"@netless/fastboard-core": "0.3.
|
|
20
|
+
"@netless/fastboard-core": "0.3.5-canary.1"
|
|
21
21
|
},
|
|
22
22
|
"scripts": {
|
|
23
23
|
"cleanup": "rimraf dist",
|
|
@@ -61,10 +61,17 @@
|
|
|
61
61
|
};
|
|
62
62
|
}
|
|
63
63
|
});
|
|
64
|
+
|
|
65
|
+
function focus_me() {
|
|
66
|
+
tippy_hide_all();
|
|
67
|
+
// workaround for some devices that enabled "windows ink"
|
|
68
|
+
let a = document.activeElement as HTMLElement | null;
|
|
69
|
+
a && a.blur && a.blur();
|
|
70
|
+
}
|
|
64
71
|
</script>
|
|
65
72
|
|
|
66
73
|
<div class="{name}-root" class:loading={!app}>
|
|
67
|
-
<div class="{name}-view" bind:this={container} on:touchstart|capture
|
|
74
|
+
<div class="{name}-view" bind:this={container} on:touchstart|capture={focus_me} />
|
|
68
75
|
<div class="{name}-left" class:hidden={!(layout === "visible" || layout === "toolbar-only")}>
|
|
69
76
|
{#if config.toolbar?.enable !== false}
|
|
70
77
|
<Toolbar {app} {theme} {language} config={config.toolbar} />
|
|
@@ -39,10 +39,17 @@
|
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
41
|
});
|
|
42
|
+
|
|
43
|
+
function focus_me() {
|
|
44
|
+
tippy_hide_all();
|
|
45
|
+
// workaround for some devices that enabled "windows ink"
|
|
46
|
+
let a = document.activeElement as HTMLElement | null;
|
|
47
|
+
a && a.blur && a.blur();
|
|
48
|
+
}
|
|
42
49
|
</script>
|
|
43
50
|
|
|
44
51
|
<div class="{name}-root" class:loading={!player}>
|
|
45
|
-
<div class="{name}-view" bind:this={container} on:touchstart|capture
|
|
52
|
+
<div class="{name}-view" bind:this={container} on:touchstart|capture={focus_me} />
|
|
46
53
|
<div class="{name}-bottom">
|
|
47
54
|
<PlayerControl {player} {theme} {language} />
|
|
48
55
|
</div>
|