fix: dragging issue of text widget in mobile view

This commit is contained in:
RaktimaNXG
2024-03-18 16:21:14 +05:30
parent c3ffda4dd2
commit 4af3d8f78b
2 changed files with 5 additions and 2 deletions
@@ -4,7 +4,8 @@ import {
defaultWidthHeight,
isMobile,
radioButtonWidget,
resizeBorderExtraWidth
resizeBorderExtraWidth,
textWidget
} from "../../constant/Utils";
function PlaceholderBorder(props) {
const getResizeBorderExtraWidth = resizeBorderExtraWidth();
@@ -32,6 +33,9 @@ function PlaceholderBorder(props) {
return (
<div
onMouseEnter={() => !isMobile && props?.setDraggingEnabled(true)}
onTouchEnd={() =>
props.pos.type === textWidget && props?.setDraggingEnabled(true)
}
className="borderResize"
style={{
borderColor: themeColor,
@@ -333,7 +333,6 @@ function PlaceHolderSign() {
let dropData = [];
let placeHolder;
const dragTypeValue = item?.text ? item.text : monitor.type;
console.log("option", dragTypeValue);
if (item === "onclick") {
const dropObj = {
//onclick put placeholder center on pdf