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

Unified Diff: ui/file_manager/gallery/js/image_editor/image_transform.js

Issue 590073002: Gallery: Fix a beginning position gap of cropping. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 | « no previous file | 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/image_editor/image_transform.js
diff --git a/ui/file_manager/gallery/js/image_editor/image_transform.js b/ui/file_manager/gallery/js/image_editor/image_transform.js
index 7e26fe9ec2d6e7fcc9b50924a1c51783df5b946c..d9fbc49f81f6f325c3da28bf7719cb4c620c6868 100644
--- a/ui/file_manager/gallery/js/image_editor/image_transform.js
+++ b/ui/file_manager/gallery/js/image_editor/image_transform.js
@@ -523,8 +523,8 @@ DraggableRect.prototype.getDragHandler = function(
// Check new crop.
if (this.dragMode_.newcrop) {
this.dragMode_.newcrop = false;
- this.bounds_.left = this.bounds_.right = newX;
- this.bounds_.top = this.bounds_.bottom = newY;
+ this.bounds_.left = this.bounds_.right = initialX;
+ this.bounds_.top = this.bounds_.bottom = initialY;
mouseBiasX = 0;
mouseBiasY = 0;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698