From c146ff99b494c966ac283da6a35d2295a85c1f48 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Mon, 30 Mar 2009 18:45:55 +1100 Subject: [PATCH] Fix zi/zi error at zoom range boundaries. --- common/content/buffer.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/content/buffer.js b/common/content/buffer.js index e0e42278..857953ed 100644 --- a/common/content/buffer.js +++ b/common/content/buffer.js @@ -78,8 +78,9 @@ function Buffer() //{{{ let i = cur + steps; i = Math.max(0, Math.min(values.length - 1, i)); - if (i == cur && fulZoom == ZoomManager.useFullZoom) + if (i == cur && fullZoom == ZoomManager.useFullZoom) liberator.beep(); + setZoom(Math.round(values[i] * 100), fullZoom); }