plain-draggable-limit.esm.js
function initAnim(element, gpuTrigger) {
  var style = element.style;
  style.webkitTapHighlightColor = 'transparent';

  // Only when it has no shadow
  var cssPropBoxShadow = CSSPrefix.getName('boxShadow'),
      boxShadow = window.getComputedStyle(element, '')[cssPropBoxShadow];
  if (!boxShadow || boxShadow === 'none') {
    style[cssPropBoxShadow] = '0 0 1px transparent';
  }

  if (gpuTrigger && cssPropTransform) {
    style[cssPropTransform] = 'translateZ(0)';
  }
  return element;
}
function initAnim(element, gpuTrigger) {
  var style = element.style;
  style.webkitTapHighlightColor = 'transparent';

  // Only when it has no shadow
  var cssPropBoxShadow = CSSPrefix.getName('boxShadow'),
      boxShadow = window.getComputedStyle(element, '')[cssPropBoxShadow];
  if (!boxShadow || boxShadow === 'none') {
    style[cssPropBoxShadow] = '0 0 1px transparent';
  }

  if (gpuTrigger && cssPropTransform) {
    style[cssPropTransform] = 'translateZ(0)';
  }
  return element;
}
function initAnim ( element , gpuTrigger ) { var style = element . style ; style . webkitTapHighlightColor = 'transparent' ; // Only when it has no shadow var cssPropBoxShadow = CSSPrefix . getName ( 'boxShadow' ) , boxShadow = window . getComputedStyle ( element , '' ) [ cssPropBoxShadow ] ; if ( ! boxShadow || boxShadow === 'none' ) { style [ cssPropBoxShadow ] = '0 0 1px transparent' ; } if ( gpuTrigger && cssPropTransform ) { style [ cssPropTransform ] = 'translateZ(0)' ; } return element ; }
Optimize an element for animation.
@param {Element} element - A target element.
@param {?boolean} gpuTrigger - Initialize for SVGElement if `true`.
@returns {Element} A target element.
Optimize an element for animation .