clickgo 3.15.24 → 3.15.25

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/README.md CHANGED
@@ -25,7 +25,7 @@ Load the module loader first, and then load it using the module loader.
25
25
  **index.html**
26
26
 
27
27
  ```html
28
- <script src="https://cdn.jsdelivr.net/npm/@litert/loader@3.5.7/dist/loader.min.js?path=index&npm={'clickgo':'3.15.24'}"></script>
28
+ <script src="https://cdn.jsdelivr.net/npm/@litert/loader@3.5.7/dist/loader.min.js?path=index&npm={'clickgo':'3.15.25'}"></script>
29
29
  ```
30
30
 
31
31
  **index.js**
@@ -1,5 +1,5 @@
1
1
  <form title="Desc" width="500" height="500" padding="10">
2
- <layout gutter="10" direction="v" style="flex: 1;">
2
+ <layout gutter="10" direction="v" style="flex: 1; width: 0;">
3
3
  <desc :border="border" :collapse="collapse" :size="size[0]" :plain="plain">
4
4
  <desc-row>
5
5
  <desc-head>HEAD1</desc-head>
package/dist/clickgo.js CHANGED
@@ -29,7 +29,7 @@ exports.isNative = isNative;
29
29
  exports.getPlatform = getPlatform;
30
30
  exports.isImmersion = isImmersion;
31
31
  exports.hasFrame = hasFrame;
32
- const version = '3.15.24';
32
+ const version = '3.15.25';
33
33
  function getVersion() {
34
34
  return version;
35
35
  }
package/dist/clickgo.ts CHANGED
@@ -13,7 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- const version = '3.15.24';
16
+ const version = '3.15.25';
17
17
  export function getVersion(): string {
18
18
  return version;
19
19
  }
Binary file
Binary file
Binary file
package/dist/lib/dom.js CHANGED
@@ -1133,7 +1133,9 @@ function bindScale(oe, handler) {
1133
1133
  if (!oe.deltaY) {
1134
1134
  return;
1135
1135
  }
1136
- handler(oe, oe.deltaY * (oe.deltaY > 0 ? 0.012 : -0.008), {
1136
+ const delta = Math.abs(oe.deltaY);
1137
+ const zoomFactor = delta * (delta > 50 ? 0.0015 : 0.003);
1138
+ handler(oe, oe.deltaY < 0 ? 1 + zoomFactor : 1 - zoomFactor, {
1137
1139
  'x': 0,
1138
1140
  'y': 0
1139
1141
  });
package/dist/lib/dom.ts CHANGED
@@ -1485,7 +1485,11 @@ export function bindScale(oe: MouseEvent | TouchEvent | WheelEvent, handler: (e:
1485
1485
  if (!oe.deltaY) {
1486
1486
  return;
1487
1487
  }
1488
- handler(oe, oe.deltaY * (oe.deltaY > 0 ? 0.012 : -0.008), {
1488
+ /** --- 本次数值 --- */
1489
+ const delta = Math.abs(oe.deltaY);
1490
+ /** --- 缩放因子 --- */
1491
+ const zoomFactor = delta * (delta > 50 ? 0.0015 : 0.003);
1492
+ handler(oe, oe.deltaY < 0 ? 1 + zoomFactor : 1 - zoomFactor, {
1489
1493
  'x': 0,
1490
1494
  'y': 0
1491
1495
  }) as any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clickgo",
3
- "version": "3.15.24",
3
+ "version": "3.15.25",
4
4
  "description": "Background interface, software interface, mobile phone APP interface operation library.",
5
5
  "keywords": [
6
6
  "deskrt",