Closed newguy123-creator closed 2 weeks ago
That's because Maplibre and Mapbox also have a cursor style. You can aim at the canvas instead of the document body to have priority in the CSS hierarchy.
That's because Maplibre and Mapbox also have a cursor style. You can aim at the canvas instead of the document body to have priority in the CSS hierarchy.
Yes I gathered that. The question therefore is, how can I overrirde it and make my style important?
three
version: 0.169.0@react-three/fiber
version: 8.17.10react-three-map
version: 0.8.2node
version: v20.11.1npm
(oryarn
) version: 10.2.4Problem description:
Usually I can easily add code to my model tag in my canvas to change the cursor to a pointer in a regular R3F app, however this doesnt seem to work in react-three-map. No matter what I do, the cursor stays the "grab" cursor.
Relevant code:
Suggested solution: