mirror of
https://github.com/stan-smith/FossFLOW.git
synced 2025-12-28 00:49:19 -05:00
fix: fixes issue with textbox selection
This commit is contained in:
@@ -470,7 +470,13 @@ export const getItemAtTile = ({
|
||||
const textBoxTo = getTextBoxTo(tb);
|
||||
const textBoxBounds = getBoundingBox([
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user