mirror of
https://github.com/stan-smith/FossFLOW.git
synced 2026-08-07 10:23:13 -04:00
fix: fixes issue with textbox selection
This commit is contained in:
1 parent
6c3a4ce6c9
commit
9903755052
1 file changed
+7
-1
@@ -470,7 +470,13 @@ export const getItemAtTile = ({
|
|||||||
const textBoxTo = getTextBoxTo(tb);
|
const textBoxTo = getTextBoxTo(tb);
|
||||||
const textBoxBounds = getBoundingBox([
|
const textBoxBounds = getBoundingBox([
|
||||||
tb.tile,
|
tb.tile,
|
||||||
{ x: Math.ceil(textBoxTo.x), y: Math.ceil(textBoxTo.y) }
|
{
|
||||||
|
x: Math.ceil(textBoxTo.x),
|
||||||
|
y:
|
||||||
|
tb.orientation === 'X'
|
||||||
|
? Math.ceil(textBoxTo.y)
|
||||||
|
: Math.floor(textBoxTo.y)
|
||||||
|
}
|
||||||
]);
|
]);
|
||||||
|
|
||||||
return isWithinBounds(tile, textBoxBounds);
|
return isWithinBounds(tile, textBoxBounds);
|
||||||
|
|||||||
Reference in new issue
Block a user