editor: increased hit Area

This commit is contained in:
Muhammad Ali
2023-04-28 15:49:24 +05:00
committed by Ammar Ahmed
parent fc5b62ba61
commit 3496e6bfa9

View File

@@ -154,7 +154,7 @@ export const OutlineListItem = Node.create<ListItemOptions>({
const clientY =
e instanceof MouseEvent ? e.clientY : e.touches[0].clientY;
const hitArea = { width: 26, height: 24 };
const hitArea = { width: 40, height: 40 };
const selection = editor.state.selection;
const parent = findParentNode((node) => !!node.attrs.textDirection)(