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

Avoid overriding cursor behaviour #252

Closed
ondrej-vesely opened this issue May 25, 2021 · 2 comments
Closed

Avoid overriding cursor behaviour #252

ondrej-vesely opened this issue May 25, 2021 · 2 comments
Assignees
Labels
🍏 feature New feature or request
Milestone

Comments

@ondrej-vesely
Copy link

ondrej-vesely commented May 25, 2021

It seems using Threebox overrides all cursor behaviour defined in Mapbox by overriding the element style of .mapboxgl-canvas-container. As a result cursor is forced to default unless specified otherwise during Threebox specific interactions.
This is especially frustrating when using something like mapbox-gl-draw and not getting any cursor feedback on when I'm hovering over features etc.

Possible solutions?

  • use this.getCanvasContainer().style.cursor = null; instead of this.getCanvasContainer().style.cursor = 'default'; ?

EDIT: Sorry for the Feature label, probably should be under Code Improvements.

@ondrej-vesely ondrej-vesely added the 🍏 feature New feature or request label May 25, 2021
@jscastro76
Copy link
Owner

jscastro76 commented May 25, 2021

@ondrej-vesely Thanks for opening the issue!
It’s ok with feature, no worries. I’ll look for options that allows to define a default cursor. I’ll be back to you ASAP

@jscastro76
Copy link
Owner

you can use now the property tb.defaultCursor on map load event to define you favorite.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍏 feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants