mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-16 16:56:09 +03:00
update comment
This commit is contained in:
@ -2104,11 +2104,7 @@ fn dragLeftClickSingle(
|
|||||||
|
|
||||||
fn posToViewport(self: Surface, xpos: f64, ypos: f64) terminal.point.Viewport {
|
fn posToViewport(self: Surface, xpos: f64, ypos: f64) terminal.point.Viewport {
|
||||||
// xpos/ypos need to be adjusted for window padding
|
// xpos/ypos need to be adjusted for window padding
|
||||||
// (i.e. "window-padding-*" settings. NOTE we don't adjust for
|
// (i.e. "window-padding-*" settings.
|
||||||
// "window-padding-balance" because we don't have access to the balance
|
|
||||||
// amount from the renderer. This is a bug but realistically balanced
|
|
||||||
// padding is so small it doesn't affect selection. This may not be true
|
|
||||||
// at large font sizes...
|
|
||||||
const pad = if (self.config.window_padding_balance)
|
const pad = if (self.config.window_padding_balance)
|
||||||
renderer.Padding.balanced(self.screen_size, self.grid_size, self.cell_size)
|
renderer.Padding.balanced(self.screen_size, self.grid_size, self.cell_size)
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user