Skip to content

Commit

Permalink
Remove animateBounce and some coding style changes
Browse files Browse the repository at this point in the history
  • Loading branch information
maraujop committed Sep 8, 2016
1 parent 42f4481 commit fdcf55c
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions library/transform/ViewTransformer.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export default class ViewTransformer extends React.Component {

onLayout(e) {
const {width, height} = e.nativeEvent.layout;
if(width !== this.state.width || height !== this.state.height) {
if (width !== this.state.width || height !== this.state.height) {
this.setState({width, height});
}
this.measureLayout();
Expand Down Expand Up @@ -194,13 +194,12 @@ export default class ViewTransformer extends React.Component {
let pivotY = gestureState.moveY - this.state.pageY;


let rect = transformedRect(transformedRect(this.contentRect(), this.currentTransform()), new Transform(
scaleBy, dx, dy,
{
x: pivotX,
y: pivotY
}
));
let rect = transformedRect(
transformedRect(this.contentRect(), this.currentTransform()),
new Transform(
scaleBy, dx, dy, { x: pivotX, y: pivotY }
)
);
transform = getTransform(this.contentRect(), rect);
} else {
if (Math.abs(dx) > 2 * Math.abs(dy)) {
Expand Down Expand Up @@ -251,11 +250,6 @@ export default class ViewTransformer extends React.Component {
}
}






performFling(vx, vy) {
let startX = 0;
let startY = 0;
Expand Down

0 comments on commit fdcf55c

Please # to comment.