Skip to content

Commit 1086479

Browse files
authored
Do not pad sliding preview window by default (#258)
Fixes #257.
1 parent ad4d779 commit 1086479

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

color_helper.sublime-settings

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
// to extend the range by. Padding is applied on both sides. So padding
108108
// by 20 rows pads by 20 on the top and 20 on the bottom. Large padding
109109
// could cause lag with typing or scrolling.
110-
"preview_window_padding": [20, 20],
110+
"preview_window_padding": [0, 0],
111111

112112
// The gamut space to render previews in.
113113
// Supported spaces are: `srgb`, `display-p3`, `rec2020`,

docs/src/markdown/settings/previews.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Previews can be positioned to the left or right of a color. Set this value to "l
1515
"inline_preview_position": "left",
1616
```
1717

18-
##
18+
## `preview_window_padding`
1919

2020
Color previews are processed in a sliding window. Without any padding it exactly matches the visible region. This allows
2121
you to extend the window and process content just out of visible range. It should be noted though that large padding
@@ -28,7 +28,7 @@ could cause typing or scrolling lag.
2828
// to extend the range by. Padding is applied on both sides. So padding
2929
// by 20 rows pads by 20 on the top and 20 on the bottom. Large padding
3030
// could cause lag with typing or scrolling.
31-
"preview_window_padding": [20, 20],
31+
"preview_window_padding": [0, 0],
3232
````
3333

3434
## `preview_on_select`

0 commit comments

Comments
 (0)