| 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 <
|
|
|