From 68fc7519166fe2828f053eee1d7c48962eab82eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20L=C3=BCbking?= Date: Mon, 3 Feb 2014 21:03:26 +0100 Subject: [PATCH] be more aggressive about exiting zoom effect CCBUG: 289336 REVIEW: 115453 --- effects/zoom/zoom.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/effects/zoom/zoom.cpp b/effects/zoom/zoom.cpp index 343c957c6a..3918c59ed0 100644 --- a/effects/zoom/zoom.cpp +++ b/effects/zoom/zoom.cpp @@ -398,7 +398,7 @@ void ZoomEffect::zoomOut() { source_zoom = zoom; target_zoom /= zoomFactor; - if (target_zoom < 1) { + if ((zoomFactor > 1 && target_zoom < 1.01) || (zoomFactor < 1 && target_zoom > 0.99)) { target_zoom = 1; if (polling) { polling = false;