Context touch
This commit is contained in:
@ -1,12 +1,13 @@
|
||||
|
||||
import * as helpers from '../../helpers'
|
||||
|
||||
export function showContextMenu( e, context = false, data ){
|
||||
export function showContextMenu( e, data, context = false, trigger = 'click' ){
|
||||
return {
|
||||
type: 'SHOW_CONTEXT_MENU',
|
||||
position_x: e.clientX,
|
||||
position_y: e.clientY,
|
||||
context: context,
|
||||
trigger: trigger,
|
||||
data: data
|
||||
}
|
||||
}
|
||||
|
||||
@ -29,6 +29,7 @@ export default function reducer(ui = {}, action){
|
||||
position_x: action.position_x,
|
||||
position_y: action.position_y,
|
||||
context: action.context,
|
||||
trigger: action.trigger,
|
||||
data: action.data
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user