Skip to content

Commit

Permalink
Tweak the oversensitive espilon for detecting cropped images (ampproj…
Browse files Browse the repository at this point in the history
  • Loading branch information
cathyxz committed Jan 30, 2018
1 parent e4cdfc7 commit ab01060
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extensions/amp-lightbox-viewer/0.1/amp-lightbox-viewer.js
Expand Up @@ -63,7 +63,7 @@ const MAX_TRANSITION_DURATION = 1000; // ms
const MIN_TRANSITION_DURATION = 300; // ms
const MAX_DISTANCE_APPROXIMATION = 250; // px
const MOTION_DURATION_RATIO = 0.8; // fraction of animation
const EPSILON = 0.001; // precision for approx equals
const EPSILON = 0.01; // precision for approx equals

/**
* TODO(aghassemi): Make lightbox-manager into a doc-level service.
Expand Down

0 comments on commit ab01060

Please sign in to comment.