diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/term/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/term/mod.rs b/src/term/mod.rs index e7352ae7..9f49ae55 100644 --- a/src/term/mod.rs +++ b/src/term/mod.rs @@ -571,9 +571,9 @@ impl SizeInfo { } fn contains_point(&self, x: usize, y:usize) -> bool { - x <= (self.width - self.padding_x) as usize || - x >= self.padding_x as usize || - y <= (self.height - self.padding_y) as usize || + x <= (self.width - self.padding_x) as usize && + x >= self.padding_x as usize && + y <= (self.height - self.padding_y) as usize && y >= self.padding_y as usize } |