Merge pull request #11730 from vvlladd28/bug/show-widget/action
Fixed select widget in touch screen
This commit is contained in:
		
						commit
						57b533b3a6
					
				@ -200,6 +200,9 @@ export class WidgetContainerComponent extends PageComponent implements OnInit, O
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  onMouseDown(event: MouseEvent) {
 | 
			
		||||
    if (event) {
 | 
			
		||||
      event.stopPropagation();
 | 
			
		||||
    }
 | 
			
		||||
    this.widgetComponentAction.emit({
 | 
			
		||||
      event,
 | 
			
		||||
      actionType: WidgetComponentActionType.MOUSE_DOWN
 | 
			
		||||
@ -207,6 +210,9 @@ export class WidgetContainerComponent extends PageComponent implements OnInit, O
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  onClicked(event: MouseEvent) {
 | 
			
		||||
    if (event) {
 | 
			
		||||
      event.stopPropagation();
 | 
			
		||||
    }
 | 
			
		||||
    this.widgetComponentAction.emit({
 | 
			
		||||
      event,
 | 
			
		||||
      actionType: WidgetComponentActionType.CLICKED
 | 
			
		||||
@ -214,6 +220,9 @@ export class WidgetContainerComponent extends PageComponent implements OnInit, O
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  onContextMenu(event: MouseEvent) {
 | 
			
		||||
    if (event) {
 | 
			
		||||
      event.stopPropagation();
 | 
			
		||||
    }
 | 
			
		||||
    this.widgetComponentAction.emit({
 | 
			
		||||
      event,
 | 
			
		||||
      actionType: WidgetComponentActionType.CONTEXT_MENU
 | 
			
		||||
@ -221,6 +230,9 @@ export class WidgetContainerComponent extends PageComponent implements OnInit, O
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  onEdit(event: MouseEvent) {
 | 
			
		||||
    if (event) {
 | 
			
		||||
      event.stopPropagation();
 | 
			
		||||
    }
 | 
			
		||||
    this.widgetComponentAction.emit({
 | 
			
		||||
      event,
 | 
			
		||||
      actionType: WidgetComponentActionType.EDIT
 | 
			
		||||
@ -228,6 +240,9 @@ export class WidgetContainerComponent extends PageComponent implements OnInit, O
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  onReplaceReferenceWithWidgetCopy(event: MouseEvent) {
 | 
			
		||||
    if (event) {
 | 
			
		||||
      event.stopPropagation();
 | 
			
		||||
    }
 | 
			
		||||
    this.widgetComponentAction.emit({
 | 
			
		||||
      event,
 | 
			
		||||
      actionType: WidgetComponentActionType.REPLACE_REFERENCE_WITH_WIDGET_COPY
 | 
			
		||||
@ -235,6 +250,9 @@ export class WidgetContainerComponent extends PageComponent implements OnInit, O
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  onExport(event: MouseEvent) {
 | 
			
		||||
    if (event) {
 | 
			
		||||
      event.stopPropagation();
 | 
			
		||||
    }
 | 
			
		||||
    this.widgetComponentAction.emit({
 | 
			
		||||
      event,
 | 
			
		||||
      actionType: WidgetComponentActionType.EXPORT
 | 
			
		||||
@ -242,6 +260,9 @@ export class WidgetContainerComponent extends PageComponent implements OnInit, O
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  onRemove(event: MouseEvent) {
 | 
			
		||||
    if (event) {
 | 
			
		||||
      event.stopPropagation();
 | 
			
		||||
    }
 | 
			
		||||
    this.widgetComponentAction.emit({
 | 
			
		||||
      event,
 | 
			
		||||
      actionType: WidgetComponentActionType.REMOVE
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user