Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
scale: pinchScale,
translateX: newTranslateX,
translateY: newTranslateY,
pinching: true
});
},
ref: imageRef,
latency: 250
});
return (
`translate(${x}px, ${y}px) scale(${s})`
),
width: 'auto',
maxHeight: '100%',
maxWidth: '100%',
...(isCurrentImage && { willChange: 'transform' })
}}
src={src}
alt={alt}
draggable="false"
onDragStart={e => {
// Disable image ghost dragging in firefox
e.preventDefault();
}}
onClick={e => {