Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.idea/
8 changes: 6 additions & 2 deletions library/transform/ViewTransformer.js
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,9 @@ export default class ViewTransformer extends React.Component {
}

performDoubleTapUp(pivotX, pivotY) {
console.log('performDoubleTapUp...pivot=' + pivotX + ', ' + pivotY);
if (__DEV__) {
console.log('performDoubleTapUp...pivot=' + pivotX + ', ' + pivotY);
}
let curScale = this.state.scale;
let scaleBy;
if (curScale > (1 + this.props.maxScale) / 2) {
Expand Down Expand Up @@ -349,7 +351,9 @@ export default class ViewTransformer extends React.Component {

let fromRect = this.transformedContentRect();
if (fromRect.equals(targetRect)) {
console.log('animate...equal rect, skip animation');
if (__DEV__) {
console.log('animate...equal rect, skip animation');
}
return;
}

Expand Down