mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Fix middle handles on mobile (#2459)
For rendering we always use mouse in order to check which handles to display but when doing the hit test, we used pointer which has a different size. So we couldn't use the middle handles for small shapes. This is now fixed. cc @j-f1 as you added it in #790
This commit is contained in:
parent
2b6d1470f9
commit
533815c081
2 changed files with 6 additions and 3 deletions
|
@ -371,6 +371,7 @@ export const renderScene = (
|
|||
const transformHandles = getTransformHandles(
|
||||
locallySelectedElements[0],
|
||||
sceneState.zoom,
|
||||
"mouse", // when we render we don't know which pointer type so use mouse
|
||||
);
|
||||
renderTransformHandles(
|
||||
context,
|
||||
|
@ -402,7 +403,7 @@ export const renderScene = (
|
|||
[x1, y1, x2, y2],
|
||||
0,
|
||||
sceneState.zoom,
|
||||
undefined,
|
||||
"mouse",
|
||||
OMIT_SIDES_FOR_MULTIPLE_ELEMENTS,
|
||||
);
|
||||
renderTransformHandles(context, sceneState, transformHandles, 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue