@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netless/fastboard-ui",
3
- "version": "0.3.0-canary.3",
3
+ "version": "0.3.0-canary.4",
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.0-canary.3"
13
+ "@netless/fastboard-core": "0.3.0-canary.4"
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.0-canary.3"
20
+ "@netless/fastboard-core": "0.3.0-canary.4"
21
21
  },
22
22
  "scripts": {
23
23
  "cleanup": "rimraf dist",
@@ -1,6 +1,7 @@
1
1
  <script lang="ts">
2
2
  import type { FastboardApp } from "@netless/fastboard-core";
3
3
  import type { Language, Theme } from "../../typings";
4
+ import { tippy_hide_all } from "../../actions/tippy";
4
5
  import RedoUndo from "../RedoUndo";
5
6
  import ZoomControl from "../ZoomControl";
6
7
  import PageControl from "../PageControl";
@@ -20,7 +21,7 @@
20
21
  </script>
21
22
 
22
23
  <div class="{name}-root" class:loading={!app}>
23
- <div class="{name}-view" bind:this={container} />
24
+ <div class="{name}-view" bind:this={container} on:touchstart|capture={tippy_hide_all} />
24
25
  <div class="{name}-left">
25
26
  <Toolbar {app} {theme} {language} />
26
27
  </div>
@@ -1,6 +1,7 @@
1
1
  <script lang="ts">
2
2
  import type { FastboardPlayer } from "@netless/fastboard-core";
3
3
  import type { Language, Theme } from "../../typings";
4
+ import { tippy_hide_all } from "../../actions/tippy";
4
5
  import PlayerControl from "../PlayerControl";
5
6
 
6
7
  export let player: FastboardPlayer | null | undefined = null;
@@ -17,7 +18,7 @@
17
18
  </script>
18
19
 
19
20
  <div class="{name}-root" class:loading={!player}>
20
- <div class="{name}-view" bind:this={container} />
21
+ <div class="{name}-view" bind:this={container} on:touchstart|capture={tippy_hide_all} />
21
22
  <div class="{name}-bottom">
22
23
  <PlayerControl {player} {theme} {language} />
23
24
  </div>