Reuse click target bounding boxes for document bounds

This commit is contained in:
Dennis Kobert
2025-09-11 11:36:30 +02:00
parent e67b1c0699
commit d9e8a71cd0
4 changed files with 4 additions and 19 deletions
+1 -1
View File
@@ -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,