OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 'use strict'; | 5 'use strict'; |
6 | 6 |
7 /** | 7 /** |
8 * Crop mode. | 8 * Crop mode. |
9 * @constructor | 9 * @constructor |
10 */ | 10 */ |
(...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
484 DraggableRect.prototype.getDoubleTapAction = function(x, y, touch) { | 484 DraggableRect.prototype.getDoubleTapAction = function(x, y, touch) { |
485 x = this.viewport_.screenToImageX(x); | 485 x = this.viewport_.screenToImageX(x); |
486 y = this.viewport_.screenToImageY(y); | 486 y = this.viewport_.screenToImageY(y); |
487 | 487 |
488 var clipRect = this.viewport_.getImageClipped(); | 488 var clipRect = this.viewport_.getImageClipped(); |
489 if (clipRect.inside(x, y)) | 489 if (clipRect.inside(x, y)) |
490 return ImageBuffer.DoubleTapAction.COMMIT; | 490 return ImageBuffer.DoubleTapAction.COMMIT; |
491 else | 491 else |
492 return ImageBuffer.DoubleTapAction.NOTHING; | 492 return ImageBuffer.DoubleTapAction.NOTHING; |
493 }; | 493 }; |
OLD | NEW |