Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add the resize direction to event #160

Merged
merged 1 commit into from
May 5, 2019

Conversation

RaananW
Copy link
Contributor

@RaananW RaananW commented May 2, 2019

Direction can be helpful in many ways. It is computed before the event is triggered and cleared at the end.

Direction is a helpful information
@@ -378,7 +378,8 @@ export class AngularResizableDirective implements OnInit, OnChanges, OnDestroy,
position: {
top: this._currPos.y,
left: this._currPos.x
}
},
direction: this._direction
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Prefer returning a deep clone of this._direction

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Want me to push a change? I noticed you merged it

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, thanks. I've made the change.

@xieziyu xieziyu changed the base branch from master to dev May 5, 2019 11:25
@xieziyu xieziyu merged commit d6ed9d4 into xieziyu:dev May 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants