diff options
Diffstat (limited to 'src/input.rs')
-rw-r--r-- | src/input.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/input.rs b/src/input.rs index f1e63299..af45c6ef 100644 --- a/src/input.rs +++ b/src/input.rs @@ -274,7 +274,10 @@ impl<'a, A: ActionContext + 'a> Processor<'a, A> { let cell_x = (x as usize - size_info.padding_x as usize) % size_info.cell_width as usize; let half_cell_width = (size_info.cell_width / 2.0) as usize; - let cell_side = if cell_x > half_cell_width { + let cell_side = if cell_x > half_cell_width + // Edge case when mouse leaves the window + || x as f32 >= size_info.width - size_info.padding_x + { Side::Right } else { Side::Left |