@netless/app-slide 0.2.89 → 0.2.91

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/app-slide",
3
- "version": "0.2.89",
3
+ "version": "0.2.91",
4
4
  "main": "dist/main.cjs.js",
5
5
  "module": "dist/main.es.js",
6
6
  "types": "dist/index.d.ts",
@@ -10,7 +10,7 @@
10
10
  "README-zh.md"
11
11
  ],
12
12
  "devDependencies": {
13
- "@netless/slide": "1.4.45",
13
+ "@netless/slide": "1.4.46",
14
14
  "@types/color-string": "^1.5.2",
15
15
  "color-string": "^1.9.1",
16
16
  "jspdf": "2.5.1",
@@ -25,7 +25,6 @@ export class ResizableContainer {
25
25
  private translateX = 0.5;
26
26
  private translateY = 0.5;
27
27
 
28
- private lastTriggerTime = 0;
29
28
  private enableResize: boolean;
30
29
 
31
30
  constructor(
@@ -98,10 +97,6 @@ export class ResizableContainer {
98
97
  };
99
98
 
100
99
  public updateResizableContainer() {
101
- if (Date.now() - this.lastTriggerTime < 50) {
102
- return;
103
- }
104
- this.lastTriggerTime = Date.now();
105
100
  const parentBounds = this.scrollContainer.getBoundingClientRect();
106
101
  this.container.style.width = `${parentBounds.width * this.scale}px`;
107
102
  this.container.style.height = `${parentBounds.height * this.scale}px`;
@@ -93,6 +93,9 @@ $namespace: $slide-namespace;
93
93
  align-items: center;
94
94
  padding: 0 16px;
95
95
  border-top: 1px solid #eeeef7;
96
+ -webkit-user-select: none;
97
+ -webkit-touch-callout: none;
98
+ -user-select: none;
96
99
  color: #191919;
97
100
  }
98
101