mirror of
https://github.com/stablyai/orca.git
synced 2026-10-20 16:03:20 +00:00
fix: address pr-bug-scan validated finding from #4765
Pass browserDefaultZoomLevelRef.current as resetLevel to applyBrowserPageZoom at BrowserPane.tsx:3220 so reset uses configured default, not 0.
This commit is contained in:
@@ -3217,7 +3217,11 @@ function BrowserPagePane({
|
||||
if (!isActiveRef.current) {
|
||||
return
|
||||
}
|
||||
const nextLevel = applyBrowserPageZoom(webviewRef.current, direction)
|
||||
const nextLevel = applyBrowserPageZoom(
|
||||
webviewRef.current,
|
||||
direction,
|
||||
browserDefaultZoomLevelRef.current
|
||||
)
|
||||
if (nextLevel !== null) {
|
||||
setBrowserDefaultZoomLevel(nextLevel)
|
||||
showBrowserZoomFeedback(nextLevel)
|
||||
|
||||
Reference in New Issue
Block a user