Context touch

This commit is contained in:
James Barnsley
2016-12-14 16:41:05 +13:00
parent cccac2b159
commit a4f5f25636
5 changed files with 23 additions and 11 deletions

View File

@ -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
}
}