forked from extern/egroupware
Add DRAG_ENTER event
This commit is contained in:
parent
98e959346c
commit
0ac617eb15
@ -24,7 +24,7 @@ export const EGW_AO_FLAG_DEFAULT_FOCUS = 0x02;
|
||||
export const EGW_AI_DRAG = 0x0100; // Use the first byte as mask for event types - 01 is for events used with drag stuff
|
||||
export const EGW_AI_DRAG_OUT = EGW_AI_DRAG | 0x01;
|
||||
export const EGW_AI_DRAG_OVER = EGW_AI_DRAG | 0x02;
|
||||
|
||||
export const EGW_AI_DRAG_ENTER = EGW_AI_DRAG | 0x03;
|
||||
|
||||
export const EGW_AO_EXEC_SELECTED = 0;
|
||||
export const EGW_AO_EXEC_THIS = 1;
|
||||
|
@ -17,7 +17,7 @@
|
||||
|
||||
import {egwAction,egwActionImplementation, egw_getObjectManager} from "./egw_action.js";
|
||||
import {getPopupImplementation} from "./egw_action_popup.js";
|
||||
import {EGW_AI_DRAG_OUT, EGW_AI_DRAG_OVER, EGW_AO_EXEC_THIS} from "./egw_action_constants.js";
|
||||
import {EGW_AI_DRAG_OUT, EGW_AI_DRAG_OVER, EGW_AO_EXEC_THIS, EGW_AI_DRAG_ENTER} from "./egw_action_constants.js";
|
||||
|
||||
/**
|
||||
* Register the drag and drop handlers
|
||||
@ -479,6 +479,13 @@ export function egwDropActionImplementation()
|
||||
currentDropEl = event.currentTarget;
|
||||
event.dataTransfer.dropEffect = 'link';
|
||||
|
||||
const data = {
|
||||
event: event,
|
||||
ui: self.getTheDraggedData()
|
||||
};
|
||||
|
||||
_aoi.triggerEvent(EGW_AI_DRAG_ENTER, data);
|
||||
|
||||
this.classList.add('drop-hover');
|
||||
|
||||
// stop the event from being fired for its children
|
||||
|
Loading…
Reference in New Issue
Block a user