Jump to content

allowing default style.cursor?


unintellisense
 Share

Recommended Posts

Hello!

I am not using ActionManagers or anything like that in a particular scene, but I would like to change the default cursor for my scenes to something else. I found that babylon will set style.cursor back to "" if it doesn't detect a mesh to use the hoverCursor property for.

I changed my fork to instead refer to a defaultCursor property in babylon.scene.ts which defaults to the same empty string that is being used in the _onPointerMove function when it doesn't determine it should set the hoverCursor property for. Is that something that might be interesting to merge in? If so, I'll make a pull request.

Thanks for a awesome library as always.

Link to comment
Share on other sites

What I don't understand is why when I pull babylon.js master and build (without making any changes to ts files), the /dist files generated already shows diffs. It looks like it is just placing things into a different order, but do not understand why? I cleaned node_modules from tools/gulp to be on the safe side, but same results.

Anyway, here is the PR, thanks https://github.com/BabylonJS/Babylon.js/pull/2661

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...