mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2025-12-23 10:11:54 +00:00
Reuse click target bounding boxes for document bounds
This commit is contained in:
parent
e67b1c0699
commit
d9e8a71cd0
4 changed files with 4 additions and 19 deletions
|
|
@ -40,7 +40,7 @@ pub struct ClickTarget {
|
|||
|
||||
impl ClickTarget {
|
||||
pub fn new_with_subpath(subpath: Subpath<PointId>, stroke_width: f64) -> Self {
|
||||
let bounding_box = subpath.loose_bounding_box();
|
||||
let bounding_box = subpath.bounding_box();
|
||||
Self {
|
||||
target_type: ClickTargetType::Subpath(subpath),
|
||||
stroke_width,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue