ker/mod/interact.js
function validateAction (action, interactable) {
        if (!isObject(action)) { return null; }

        var actionName = action.name,
            options = interactable.options;

        if ((  (actionName  === 'resize'   && options.resize.enabled )
            || (actionName      === 'drag'     && options.drag.enabled  )
            || (actionName      === 'gesture'  && options.gesture.enabled))
            && actionIsEnabled[actionName]) {

            if (actionName === 'resize' || actionName === 'resizeyx') {
                actionName = 'resizexy';
            }

            return action;
        }
        return null;
    }
function validateAction (action, interactable) {
        if (!isObject(action)) { return null; }

        var actionName = action.name,
            options = interactable.options;

        if ((  (actionName  === 'resize'   && options.resize.enabled )
            || (actionName      === 'drag'     && options.drag.enabled  )
            || (actionName      === 'gesture'  && options.gesture.enabled))
            && actionIsEnabled[actionName]) {

            if (actionName === 'resize' || actionName === 'resizeyx') {
                actionName = 'resizexy';
            }

            return action;
        }
        return null;
    }
function validateAction ( action , interactable ) { if ( ! isObject ( action ) ) { return null ; } var actionName = action . name , options = interactable . options ; if ( ( ( actionName === 'resize' && options . resize . enabled ) || ( actionName === 'drag' && options . drag . enabled ) || ( actionName === 'gesture' && options . gesture . enabled ) ) && actionIsEnabled [ actionName ] ) { if ( actionName === 'resize' || actionName === 'resizeyx' ) { actionName = 'resizexy' ; } return action ; } return null ; }
Check if action is enabled globally and the current target supports it If so, return the validated action. Otherwise, return null
Check if action is enabled globally and the current target supports it If so return the validated action . Otherwise return null