fix: widgets text select issue in mobile view

This commit is contained in:
RaktimaNXG
2024-01-31 19:55:06 +05:30
parent fe03da1d97
commit 048629dd32
3 changed files with 17 additions and 9 deletions
@@ -249,16 +249,13 @@ export const getWidgetType = (
onTouchStart={() => handleTouchStart && handleTouchStart(item.type)}
onTouchEnd={handleTouchEnd && handleTouchEnd}
onTouchMove={handleTouchMove && handleTouchMove}
className="signatureBtn"
className="signatureBtn widgets"
style={{
boxShadow:
"0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.18)",
marginLeft: marginLeft && `${marginLeft}px`,
background:
selectWidgetType === item.type &&
backgroundColor &&
backgroundColor,
userSelect: "none"
selectWidgetType === item.type && backgroundColor && backgroundColor
}}
>
<div