Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(505)

Unified Diff: ui/file_manager/gallery/js/slide_mode.js

Issue 395083002: Gallery: Add animation when zooming pictures. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/file_manager/gallery/js/image_editor/viewport.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/file_manager/gallery/js/slide_mode.js
diff --git a/ui/file_manager/gallery/js/slide_mode.js b/ui/file_manager/gallery/js/slide_mode.js
index 3de743ff6078e545ad48ea50dc225001edf59103..6dec25a0eed57b1d584a86a8c225256423e9da53 100644
--- a/ui/file_manager/gallery/js/slide_mode.js
+++ b/ui/file_manager/gallery/js/slide_mode.js
@@ -869,14 +869,14 @@ SlideMode.prototype.onKeyDown = function(event) {
case 'Ctrl-U+00BB': // Ctrl+'=' zoom in.
if (!this.isEditing()) {
this.viewport_.setZoomIndex(this.viewport_.getZoomIndex() + 1);
- this.imageView_.draw();
+ this.imageView_.applyViewportChange();
}
break;
case 'Ctrl-U+00BD': // Ctrl+'-' zoom out.
if (!this.isEditing()) {
this.viewport_.setZoomIndex(this.viewport_.getZoomIndex() - 1);
- this.imageView_.draw();
+ this.imageView_.applyViewportChange();
}
break;
}
« no previous file with comments | « ui/file_manager/gallery/js/image_editor/viewport.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698