mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2025-08-04 05:18:19 +00:00
Fix selecting upsidedown layers (#1560)
This commit is contained in:
parent
45de49fa03
commit
83116aa744
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ impl ClickTarget {
|
|||
/// Does the click target intersect the rectangle
|
||||
pub fn intersect_rectangle(&self, document_quad: Quad, layer_transform: DAffine2) -> bool {
|
||||
// Check if the matrix is not invertible
|
||||
if layer_transform.matrix2.determinant() <= std::f64::EPSILON {
|
||||
if layer_transform.matrix2.determinant().abs() <= std::f64::EPSILON {
|
||||
return false;
|
||||
}
|
||||
let quad = layer_transform.inverse() * document_quad;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue