@flexem/fc-gui 3.0.0-alpha.77 → 3.0.0-alpha.78
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/CHANGELOG.md +5 -0
- package/bundles/@flexem/fc-gui.umd.js +3 -2
- package/bundles/@flexem/fc-gui.umd.js.map +1 -1
- package/bundles/@flexem/fc-gui.umd.min.js +1 -1
- package/bundles/@flexem/fc-gui.umd.min.js.map +1 -1
- package/elements/switch-indicator-light/switch-indicator-light-element.js +3 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -38542,7 +38542,8 @@ class switch_indicator_light_element_SwitchIndicatorLightElement extends conditi
|
|
|
38542
38542
|
if (this.model.useSwitch) {
|
|
38543
38543
|
this.initSwitchOperator();
|
|
38544
38544
|
this.rootElement.style('cursor', 'hand');
|
|
38545
|
-
|
|
38545
|
+
const isMobile = navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i);
|
|
38546
|
+
this.rootElement.on(this.isMobileMode && isMobile ? 'touchstart' : 'mousedown', () => {
|
|
38546
38547
|
if (!this.isInitialized) {
|
|
38547
38548
|
return;
|
|
38548
38549
|
}
|
|
@@ -38584,7 +38585,7 @@ class switch_indicator_light_element_SwitchIndicatorLightElement extends conditi
|
|
|
38584
38585
|
on_event.preventDefault();
|
|
38585
38586
|
}
|
|
38586
38587
|
});
|
|
38587
|
-
this.rootElement.on(this.isMobileMode ? 'touchend' : 'mouseup', () => {
|
|
38588
|
+
this.rootElement.on(this.isMobileMode && isMobile ? 'touchend' : 'mouseup', () => {
|
|
38588
38589
|
this.handleMouseUp();
|
|
38589
38590
|
on_event.stopPropagation();
|
|
38590
38591
|
});
|