1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-10 15:04:32 +03:00

don't round mouse coords when mouse is grabbed

refs: https://github.com/wez/wezterm/issues/898
This commit is contained in:
Wez Furlong 2021-06-22 20:39:51 -07:00
parent 07799d0ab3
commit ea95f3f735

View File

@ -58,7 +58,7 @@ impl super::TermWindow {
.sub(config.window_padding.left as isize)
.max(0) as f32)
/ self.render_metrics.cell_size.width as f32;
let x = if !in_tab_bar {
let x = if !in_tab_bar && !pane.is_mouse_grabbed() {
// Round the x coordinate so that we're a bit more forgiving of
// the horizontal position when selecting cells
x.round()