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

Implement shouldStopEvent in DragBox interaction #1960

Merged
merged 2 commits into from Apr 7, 2014
Merged

Implement shouldStopEvent in DragBox interaction #1960

merged 2 commits into from Apr 7, 2014

Conversation

elemoine
Copy link
Member

@elemoine elemoine commented Apr 7, 2014

This fixes a bug reported on the mailing list where the map is panned while boxes are drawn.

Please review.

Note: the shouldStopEvent function was introduced because of the PinchZoom and PinchRotate interactions that need to work together, that is the PinchZoom interaction should not stop event and prevent the PinchRotate interaction to trigger (and vice-versa). We could probably remove the shouldStopEvent hack by combining these two interactions into one.

@tsauerwein
Copy link
Member

LGTM

@elemoine
Copy link
Member Author

elemoine commented Apr 7, 2014

Thanks @tsauerwein.

@tschaub
Copy link
Member

tschaub commented Apr 7, 2014

Looks good to me as well.

elemoine pushed a commit that referenced this pull request Apr 7, 2014
Implement shouldStopEvent in DragBox interaction
@elemoine elemoine merged commit 4561e0b into openlayers:master Apr 7, 2014
@elemoine elemoine deleted the stopevent branch April 7, 2014 15:23
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.

None yet

3 participants