TourismSystemWeb/WebRoot/assets/js/amazeui.js
/**
         * when the touchActions are collected they are not a valid value, so we need to clean things up. *
         * @param {String} actions
         * @returns {*}
         */
when the touchActions are collected they are not a valid value, so we need to clean things up.
@param {String} actions
@returns {*}
when the touchActions are collected they are not a valid value so we need to clean things up . @param { String } actions @returns { * }
function cleanTouchActions(actions) {
          if (inStr(actions, TOUCH_ACTION_NONE)) {
            return TOUCH_ACTION_NONE;
          }
          var hasPanX = inStr(actions, TOUCH_ACTION_PAN_X);
          var hasPanY = inStr(actions, TOUCH_ACTION_PAN_Y);
          if (hasPanX && hasPanY) {
            return TOUCH_ACTION_PAN_X + ' ' + TOUCH_ACTION_PAN_Y;
          }
          if (hasPanX || hasPanY) {
            return hasPanX ? TOUCH_ACTION_PAN_X : TOUCH_ACTION_PAN_Y;
          }
          if (inStr(actions, TOUCH_ACTION_MANIPULATION)) {
            return TOUCH_ACTION_MANIPULATION;
          }
          return TOUCH_ACTION_AUTO;
        }
function cleanTouchActions ( actions ) { if ( inStr ( actions , TOUCH_ACTION_NONE ) ) { return TOUCH_ACTION_NONE ; } var hasPanX = inStr ( actions , TOUCH_ACTION_PAN_X ) ; var hasPanY = inStr ( actions , TOUCH_ACTION_PAN_Y ) ; if ( hasPanX && hasPanY ) { return TOUCH_ACTION_PAN_X + ' ' + TOUCH_ACTION_PAN_Y ; } if ( hasPanX || hasPanY ) { return hasPanX ? TOUCH_ACTION_PAN_X : TOUCH_ACTION_PAN_Y ; } if ( inStr ( actions , TOUCH_ACTION_MANIPULATION ) ) { return TOUCH_ACTION_MANIPULATION ; } return TOUCH_ACTION_AUTO ; }
when the touchActions are collected they are not a valid value, so we need to clean things up.
when the touchActions are collected they are not a valid value so we need to clean things up .
// none // pan-x and pan-y can be combined // pan-x OR pan-y // manipulation