src/store/setToolMode.js
function _resolveGenericInputConflicts(
  interactionType,
  tool,
  element,
  options
) {
  const interactionTypeFlag = `is${interactionType}Active`;
  const activeToolWithActiveInteractionType = store.state.tools.find(
    t =>
      t.element === element &&
      t.mode === 'active' &&
      t.options[interactionTypeFlag] === true
  );

  if (activeToolWithActiveInteractionType) {
    logger.log(
      "Setting tool %s's %s to false",
      activeToolWithActiveInteractionType.name,
      interactionTypeFlag
    );
    activeToolWithActiveInteractionType.options[interactionTypeFlag] = false;
  }
}
function _resolveGenericInputConflicts(
  interactionType,
  tool,
  element,
  options
) {
  const interactionTypeFlag = `is${interactionType}Active`;
  const activeToolWithActiveInteractionType = store.state.tools.find(
    t =>
      t.element === element &&
      t.mode === 'active' &&
      t.options[interactionTypeFlag] === true
  );

  if (activeToolWithActiveInteractionType) {
    logger.log(
      "Setting tool %s's %s to false",
      activeToolWithActiveInteractionType.name,
      interactionTypeFlag
    );
    activeToolWithActiveInteractionType.options[interactionTypeFlag] = false;
  }
}
function _resolveGenericInputConflicts ( interactionType , tool , element , options ) { const interactionTypeFlag = ` ${ interactionType } ` ; const activeToolWithActiveInteractionType = store . state . tools . find ( t => t . element === element && t . mode === 'active' && t . options [ interactionTypeFlag ] === true ) ; if ( activeToolWithActiveInteractionType ) { logger . log ( "Setting tool %s's %s to false" , activeToolWithActiveInteractionType . name , interactionTypeFlag ) ; activeToolWithActiveInteractionType . options [ interactionTypeFlag ] = false ; } }
If the incoming tool isTouchActive, find any conflicting tools
and set their isTouchActive to false to avoid conflicts.

@private
@function _resolveGenericInputConflicts

@param {string} interactionType
@param {Object} tool
@param {HTMLElement} element
@param {(Object|number)} options
@returns {undefined}
If the incoming tool isTouchActive find any conflicting tools and set their isTouchActive to false to avoid conflicts .