sequential-workflow-designer 0.30.1 → 0.30.2

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
@@ -106,10 +106,10 @@ Add the below code to your head section in HTML document.
106
106
  ```html
107
107
  <head>
108
108
  ...
109
- <link href="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.30.1/css/designer.css" rel="stylesheet">
110
- <link href="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.30.1/css/designer-light.css" rel="stylesheet">
111
- <link href="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.30.1/css/designer-dark.css" rel="stylesheet">
112
- <script src="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.30.1/dist/index.umd.js"></script>
109
+ <link href="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.30.2/css/designer.css" rel="stylesheet">
110
+ <link href="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.30.2/css/designer-light.css" rel="stylesheet">
111
+ <link href="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.30.2/css/designer-dark.css" rel="stylesheet">
112
+ <script src="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.30.2/dist/index.umd.js"></script>
113
113
  ```
114
114
 
115
115
  Call the designer by:
package/css/designer.css CHANGED
@@ -143,6 +143,8 @@
143
143
  z-index: 20;
144
144
  padding: 8px 0 8px 8px;
145
145
  white-space: nowrap;
146
+ -webkit-user-select: none;
147
+ user-select: none;
146
148
  }
147
149
 
148
150
  .sqd-control-bar-button {
package/dist/index.umd.js CHANGED
@@ -2880,7 +2880,8 @@
2880
2880
  throw new Error(notInitializedError$1);
2881
2881
  }
2882
2882
  const position = (_a = this.state.lastPosition) !== null && _a !== void 0 ? _a : this.state.startPosition;
2883
- const element = this.dom.elementFromPoint(position.x, position.y);
2883
+ const clientPosition = position.subtract(new Vector(window.scrollX, window.scrollY));
2884
+ const element = this.dom.elementFromPoint(clientPosition.x, clientPosition.y);
2884
2885
  this.stop(false, element);
2885
2886
  };
2886
2887
  this.onTouchStart = (e) => {
package/lib/cjs/index.cjs CHANGED
@@ -2695,7 +2695,8 @@ class BehaviorController {
2695
2695
  throw new Error(notInitializedError$1);
2696
2696
  }
2697
2697
  const position = (_a = this.state.lastPosition) !== null && _a !== void 0 ? _a : this.state.startPosition;
2698
- const element = this.dom.elementFromPoint(position.x, position.y);
2698
+ const clientPosition = position.subtract(new Vector(window.scrollX, window.scrollY));
2699
+ const element = this.dom.elementFromPoint(clientPosition.x, clientPosition.y);
2699
2700
  this.stop(false, element);
2700
2701
  };
2701
2702
  this.onTouchStart = (e) => {
package/lib/esm/index.js CHANGED
@@ -2694,7 +2694,8 @@ class BehaviorController {
2694
2694
  throw new Error(notInitializedError$1);
2695
2695
  }
2696
2696
  const position = (_a = this.state.lastPosition) !== null && _a !== void 0 ? _a : this.state.startPosition;
2697
- const element = this.dom.elementFromPoint(position.x, position.y);
2697
+ const clientPosition = position.subtract(new Vector(window.scrollX, window.scrollY));
2698
+ const element = this.dom.elementFromPoint(clientPosition.x, clientPosition.y);
2698
2699
  this.stop(false, element);
2699
2700
  };
2700
2701
  this.onTouchStart = (e) => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "sequential-workflow-designer",
3
3
  "description": "Customizable no-code component for building flow-based programming applications.",
4
- "version": "0.30.1",
4
+ "version": "0.30.2",
5
5
  "type": "module",
6
6
  "main": "./lib/esm/index.js",
7
7
  "types": "./lib/index.d.ts",
@@ -129,6 +129,8 @@
129
129
  z-index: 20;
130
130
  padding: 8px 0 8px 8px;
131
131
  white-space: nowrap;
132
+ -webkit-user-select: none;
133
+ user-select: none;
132
134
  }
133
135
  .sqd-control-bar-button {
134
136
  display: inline-block;