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

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

Issue 411853002: Gallery.app: Add touch handlers for the zoom/scroll feature. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed. 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 | « no previous file | ui/file_manager/gallery/js/image_editor/viewport.js » ('j') | 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_editor.js
diff --git a/ui/file_manager/gallery/js/image_editor/image_editor.js b/ui/file_manager/gallery/js/image_editor/image_editor.js
index b16c9ff193abfc63d5cc336a9304c637bf94e4d9..618d732cc26d4e1e60787dd5d63f0e7800c0c707 100644
--- a/ui/file_manager/gallery/js/image_editor/image_editor.js
+++ b/ui/file_manager/gallery/js/image_editor/image_editor.js
@@ -747,8 +747,10 @@ ImageEditor.MouseControl.prototype.onTouchStart = function(e) {
* @param {TouchEvent} e Event.
*/
ImageEditor.MouseControl.prototype.onTouchEnd = function(e) {
- if (!this.dragHappened_ && Date.now() - this.touchStartInfo_.time <=
- ImageEditor.MouseControl.MAX_TAP_DURATION_) {
+ if (!this.dragHappened_ &&
+ this.touchStartInfo_ &&
+ Date.now() - this.touchStartInfo_.time <=
+ ImageEditor.MouseControl.MAX_TAP_DURATION_) {
this.buffer_.onClick(this.touchStartInfo_.x, this.touchStartInfo_.y);
if (this.previousTouchStartInfo_ &&
Date.now() - this.previousTouchStartInfo_.time <
« no previous file with comments | « no previous file | ui/file_manager/gallery/js/image_editor/viewport.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698