mirror of
https://github.com/stan-smith/FossFLOW.git
synced 2025-12-26 07:59:10 -05:00
fix: enables textboxes to be selected more easily
This commit is contained in:
@@ -467,7 +467,11 @@ export const getItemAtTile = ({
|
||||
if (node) return node;
|
||||
|
||||
const textBox = scene.textBoxes.find((tb) => {
|
||||
const textBoxBounds = getBoundingBox([tb.tile, getTextBoxTo(tb)]);
|
||||
const textBoxTo = getTextBoxTo(tb);
|
||||
const textBoxBounds = getBoundingBox([
|
||||
tb.tile,
|
||||
{ x: Math.ceil(textBoxTo.x), y: Math.ceil(textBoxTo.y) }
|
||||
]);
|
||||
|
||||
return isWithinBounds(tile, textBoxBounds);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user