File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -483,8 +483,7 @@ module.exports = React.createClass({
483
483
484
484
componentWillReceiveProps : function ( newProps ) {
485
485
// React to changes in the 'start' param.
486
- if ( newProps . moveOnStartChange && newProps . start &&
487
- ( newProps . start . x !== this . state . initialStart . x || newProps . start . y !== this . state . initialStart . y ) ) {
486
+ if ( newProps . moveOnStartChange && newProps . start ) {
488
487
this . setState ( this . getInitialState ( newProps ) ) ;
489
488
}
490
489
} ,
@@ -525,9 +524,7 @@ module.exports = React.createClass({
525
524
offsetX : 0 , offsetY : 0 ,
526
525
527
526
// Current transform x and y.
528
- clientX : props . start . x , clientY : props . start . y ,
529
-
530
- initialStart : props . start
527
+ clientX : props . start . x , clientY : props . start . y
531
528
} ;
532
529
} ,
533
530
You can’t perform that action at this time.
0 commit comments