sequential-workflow-designer 0.21.2 → 0.21.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/README.md CHANGED
@@ -102,10 +102,10 @@ Add the below code to your head section in HTML document.
102
102
  ```html
103
103
  <head>
104
104
  ...
105
- <link href="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.21.2/css/designer.css" rel="stylesheet">
106
- <link href="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.21.2/css/designer-light.css" rel="stylesheet">
107
- <link href="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.21.2/css/designer-dark.css" rel="stylesheet">
108
- <script src="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.21.2/dist/index.umd.js"></script>
105
+ <link href="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.21.4/css/designer.css" rel="stylesheet">
106
+ <link href="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.21.4/css/designer-light.css" rel="stylesheet">
107
+ <link href="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.21.4/css/designer-dark.css" rel="stylesheet">
108
+ <script src="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.21.4/dist/index.umd.js"></script>
109
109
  ```
110
110
 
111
111
  Call the designer by:
package/dist/index.umd.js CHANGED
@@ -3842,6 +3842,7 @@
3842
3842
  this.startScroll(readTouchPosition(e));
3843
3843
  };
3844
3844
  this.onMouseDown = (e) => {
3845
+ e.preventDefault();
3845
3846
  this.startScroll(readMousePosition(e));
3846
3847
  };
3847
3848
  this.onTouchMove = (e) => {
@@ -3999,11 +4000,14 @@
3999
4000
  onTouchstart(e) {
4000
4001
  e.preventDefault();
4001
4002
  if (e.touches.length === 1) {
4003
+ // We stop propagation only if it was a single touch event (we can start dragging).
4004
+ // Otherwise we want to bubble up the event to the scrollbox.
4002
4005
  e.stopPropagation();
4003
4006
  this.tryDrag(readTouchPosition(e));
4004
4007
  }
4005
4008
  }
4006
4009
  onMousedown(e) {
4010
+ e.preventDefault();
4007
4011
  e.stopPropagation();
4008
4012
  const isPrimaryButton = e.button === 0;
4009
4013
  if (isPrimaryButton) {
package/lib/cjs/index.cjs CHANGED
@@ -3657,6 +3657,7 @@ class ScrollBoxView {
3657
3657
  this.startScroll(readTouchPosition(e));
3658
3658
  };
3659
3659
  this.onMouseDown = (e) => {
3660
+ e.preventDefault();
3660
3661
  this.startScroll(readMousePosition(e));
3661
3662
  };
3662
3663
  this.onTouchMove = (e) => {
@@ -3814,11 +3815,14 @@ class ToolboxItem {
3814
3815
  onTouchstart(e) {
3815
3816
  e.preventDefault();
3816
3817
  if (e.touches.length === 1) {
3818
+ // We stop propagation only if it was a single touch event (we can start dragging).
3819
+ // Otherwise we want to bubble up the event to the scrollbox.
3817
3820
  e.stopPropagation();
3818
3821
  this.tryDrag(readTouchPosition(e));
3819
3822
  }
3820
3823
  }
3821
3824
  onMousedown(e) {
3825
+ e.preventDefault();
3822
3826
  e.stopPropagation();
3823
3827
  const isPrimaryButton = e.button === 0;
3824
3828
  if (isPrimaryButton) {
package/lib/esm/index.js CHANGED
@@ -3656,6 +3656,7 @@ class ScrollBoxView {
3656
3656
  this.startScroll(readTouchPosition(e));
3657
3657
  };
3658
3658
  this.onMouseDown = (e) => {
3659
+ e.preventDefault();
3659
3660
  this.startScroll(readMousePosition(e));
3660
3661
  };
3661
3662
  this.onTouchMove = (e) => {
@@ -3813,11 +3814,14 @@ class ToolboxItem {
3813
3814
  onTouchstart(e) {
3814
3815
  e.preventDefault();
3815
3816
  if (e.touches.length === 1) {
3817
+ // We stop propagation only if it was a single touch event (we can start dragging).
3818
+ // Otherwise we want to bubble up the event to the scrollbox.
3816
3819
  e.stopPropagation();
3817
3820
  this.tryDrag(readTouchPosition(e));
3818
3821
  }
3819
3822
  }
3820
3823
  onMousedown(e) {
3824
+ e.preventDefault();
3821
3825
  e.stopPropagation();
3822
3826
  const isPrimaryButton = e.button === 0;
3823
3827
  if (isPrimaryButton) {
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.21.2",
4
+ "version": "0.21.4",
5
5
  "type": "module",
6
6
  "main": "./lib/esm/index.js",
7
7
  "types": "./lib/index.d.ts",