-
Notifications
You must be signed in to change notification settings - Fork 592
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
Draw interferes dragPan.disable() #654
Comments
Hi, Same problem here. Did you find a workaround ? Thanks, |
No, I never did - was hoping to hear from the folks who developed this to see if they had any insight? |
Ah! I keep hoping to have time to really dive into this. Sorry. |
OK. I took a quick look. This bug is happening in |
Thanks, appreciate you looking into it. Let me know if there's anything I can do on my end? |
@rvratner - If you have time to debug this a bit and make a PR when you find a solution that would be great. Here are the three places Draw calls
I'd work on this by starting the debug page and adding some logging to the modes. |
…hen direct_select has disabled it
…hen direct_select has disabled it
Any solution? |
In my case, this issue affected the draggable markers on my map, which prevents them from being dragged due to the fact that the WorkaroundOn marker's 'mouseenter' event we should prepare the markers for drag by changing the draw mode to then, on 'mouseleave' fired we change it back to |
MyWorkaround I solved this problem by modifying mapbox-gl-draw.js file. |
This is still an issue. Is this looked being looked at? I belive it should work if when setting dragPan.enable(), you only do this if dragPan is not previously disabled. |
…hen direct_select has disabled it
…hen direct_select has disabled it
any update? |
any update |
…hen direct_select has disabled it
…hen direct_select has disabled it
Hi there, is there any update on this? Mapbox-draw is still interfering with dragPan. Any chance you'll merge PR #1191 ? |
This problem affects more than just In order to disable interactions I had to remove the draw control from the map when I wanted to disable interactions and add it back in when I wanted to re-enable them. |
* #654 retaining dragPan state for simple_select, direct_select, and setup * #654 further limiting direct_select to only re-enable dragPan when direct_select has disabled it * #654 further limiting simple_select to only re-enable dragPan when direct_select has disabled it * refactor: applied suggestions --------- Co-authored-by: holyblader2010 <[email protected]> Co-authored-by: Stepan Kuzmin <[email protected]>
Hey all! Thanks for the discussion. This is done at #1216 and will be available in the next release. |
mapbox-gl-js version: 0.37
mapbox-gl-draw version: v0.17.4
Steps to Trigger Behavior
Expected Behavior
User can't drag pan the map
Actual Behavior
Map is able to be dragpanned
If you comment out the
var draw = new MapboxDraw({
displayControlsDefault: false,
controls: {
polygon: true,
trash: true
}
});
You are able to disable dragPan as expected
The text was updated successfully, but these errors were encountered: