mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Change debug assertions to specific ones
This commit is contained in:
parent
2cf0077be1
commit
661d234c3c
23 changed files with 53 additions and 53 deletions
|
@ -219,7 +219,7 @@ impl TouchHandler {
|
|||
}
|
||||
|
||||
fn pinch_distance_and_center(&self) -> (f32, TypedPoint2D<f32, DevicePixel>) {
|
||||
debug_assert!(self.touch_count() == 2);
|
||||
debug_assert_eq!(self.touch_count(), 2);
|
||||
let p0 = self.active_touch_points[0].point;
|
||||
let p1 = self.active_touch_points[1].point;
|
||||
let center = p0.lerp(p1, 0.5);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue