mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Use tolerance > 0 in Path::contains_point()
This commit is contained in:
parent
5151309ee8
commit
55256df0ba
1 changed files with 1 additions and 1 deletions
|
@ -191,7 +191,7 @@ impl Path {
|
||||||
self.as_raqote()
|
self.as_raqote()
|
||||||
.clone()
|
.clone()
|
||||||
.transform(path_transform)
|
.transform(path_transform)
|
||||||
.contains_point(0., x as f32, y as f32)
|
.contains_point(0.1, x as f32, y as f32)
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn copy_to_builder(&self) -> Box<dyn GenericPathBuilder> {
|
pub fn copy_to_builder(&self) -> Box<dyn GenericPathBuilder> {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue