Skip to content

Commit f993f4e

Browse files
authored
Update CONFIG.md
zoomToBoundsEnabled
1 parent 2811b24 commit f993f4e

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

CONFIG.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -203,13 +203,12 @@ Determines if arrow keys can be used to navigate across pages.
203203
##### zoomToSearchResultEnabled
204204
**Type**: `boolean`
205205
**Default**: `true`
206-
Determines if zoom to search result is enabled.[^2]
206+
Determines whether the viewer zooms into a selected search result.
207207

208208
##### zoomToBoundsEnabled
209209
**Type**: `boolean`
210210
**Default**: `true`
211-
When true, activating an annotation (e.g. clicking on a search result) will zoom in on the annotation; when false, the annotation will be moved into view but the zoom level will not change.
212-
211+
Defines how zoom behaves when zoomToSearchResultEnabled is also set to true. When true, the viewer zooms in to the search result's bounds. When false, the viewer pans to the result without changing the current zoom level — unless the current zoom is greater than the result’s bounds, in which case it zooms out to fit the bounds.
213212

214213
## Modules
215214

0 commit comments

Comments
 (0)