@flexem/fc-gui 3.0.0-alpha.111 → 3.0.0-alpha.113

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.
@@ -60,7 +60,7 @@ export class SwitchIndicatorLightElement extends ConditionalEnableElement {
60
60
  }
61
61
  else {
62
62
  this.checkElementPassword(false);
63
- if (!this.model.useIndicatorLight && !this.isMobileMode) {
63
+ if (!this.model.useIndicatorLight) {
64
64
  this.switchToState(1);
65
65
  }
66
66
  }
@@ -72,7 +72,9 @@ export class SwitchIndicatorLightElement extends ConditionalEnableElement {
72
72
  this.isWriteRestorationDownValue = true;
73
73
  }, 1000);
74
74
  }
75
- d3.event.preventDefault();
75
+ if (d3.event && d3.event.cancelable) {
76
+ d3.event.preventDefault();
77
+ }
76
78
  }
77
79
  });
78
80
  this.rootElement.on(this.isMobileMode && isMobile ? 'touchend' : 'mouseup', () => {
@@ -100,9 +102,9 @@ export class SwitchIndicatorLightElement extends ConditionalEnableElement {
100
102
  document.removeEventListener(this.isMobileMode ? 'touchend' : 'mouseup', this.onDocMouseUp);
101
103
  this.isVerifiedForRestoration = false;
102
104
  this.isWriteRestorationDownValue = false;
103
- if (!this.model.useIndicatorLight && !this.isMobileMode) {
105
+ if (!this.model.useIndicatorLight) {
104
106
  this.switchToState(0);
105
- if (d3.event) {
107
+ if (d3.event && d3.event.cancelable) {
106
108
  d3.event.preventDefault();
107
109
  }
108
110
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "main": "bundles/fc-gui.umd.js",
3
- "version": "3.0.0-alpha.111",
3
+ "version": "3.0.0-alpha.113",
4
4
  "module": "public_api.js",
5
5
  "typings": "public_api.d.ts",
6
6
  "license": "UNLICENSED",