Skip to content

Commit 4af3d8f

Browse files
fix: dragging issue of text widget in mobile view
1 parent c3ffda4 commit 4af3d8f

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

apps/OpenSign/src/components/pdf/PlaceholderBorder.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ import {
44
defaultWidthHeight,
55
isMobile,
66
radioButtonWidget,
7-
resizeBorderExtraWidth
7+
resizeBorderExtraWidth,
8+
textWidget
89
} from "../../constant/Utils";
910
function PlaceholderBorder(props) {
1011
const getResizeBorderExtraWidth = resizeBorderExtraWidth();
@@ -32,6 +33,9 @@ function PlaceholderBorder(props) {
3233
return (
3334
<div
3435
onMouseEnter={() => !isMobile && props?.setDraggingEnabled(true)}
36+
onTouchEnd={() =>
37+
props.pos.type === textWidget && props?.setDraggingEnabled(true)
38+
}
3539
className="borderResize"
3640
style={{
3741
borderColor: themeColor,

apps/OpenSign/src/pages/PlaceHolderSign.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,6 @@ function PlaceHolderSign() {
333333
let dropData = [];
334334
let placeHolder;
335335
const dragTypeValue = item?.text ? item.text : monitor.type;
336-
console.log("option", dragTypeValue);
337336
if (item === "onclick") {
338337
const dropObj = {
339338
//onclick put placeholder center on pdf

0 commit comments

Comments
 (0)