Reuse click target bounding boxes for document bounds

This commit is contained in:
Dennis Kobert 2025-09-10 22:04:31 +02:00
parent e67b1c0699
commit d9e8a71cd0
No known key found for this signature in database
GPG key ID: 5A4358CB9530F933
4 changed files with 4 additions and 19 deletions

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,