{
if (!isDragging) {
setTimeout(() => {
setIsSignPad(true);
//setIsSignPad(false)
setSignKey(pos.key);
setIsStamp(pos.isStamp);
}, 500);
}
}}
className="dragElm"
style={{
padding: "0px",
cursor: "all-scroll",
zIndex: 20,
position: "absolute",
borderStyle: "dashed",
width: "150px",
height: "60px",
borderColor: themeColor(),
background: "#daebe0",
textAlign: "center",
justifyContent: "center",
borderWidth: "0.2px",
overflow: "hidden",
}}
>
{
// console.log("child m=event")
// e.preventDefault();
// setIsDragging(true)
// handleDeleteSign(pos.key);
// setIsStamp(false);
// setTimeout(()=>{
// setIsDragging(false)
// },2000)
// }}
onTouchStart={(e) => {
e.stopPropagation();
e.preventDefault();
// setIsDragging(true);
handleDeleteSign(pos.key);
setIsStamp(false);
}}
onClick={(e) => {
e.stopPropagation(); // Prevent further event propagation
}}
style={{
position: "absolute",
right: 0,
display: "inline-block",
background: themeColor(),
cursor: "pointer",
padding: "0px 10px",
}}
>
x
{pos.isStamp ? "stamp" : "signature"}