mp-react-components icon indicating copy to clipboard operation
mp-react-components copied to clipboard

Color of objects does not revert to original color after hover interaction concluded

Open mkhorton opened this issue 2 years ago • 1 comments

Creating this issue to track.

Bug likely somewhere in mouseMoveListener.

Anecdotally, seems to occur more often with larger scenes / smaller viewports, or rapid mouse movements.

Resolutions could be:

  • Fixing underlying bug, e.g. ensuring all objects returned to original color when hover interaction concluded.
  • Simply removing the change in color, e.g. this line.

Suggestion to review Three.js docs for recommended way to implement this feature.

mkhorton avatar Jul 28 '23 19:07 mkhorton

Adding a note that this is the first time I've looked at this code in a while, it looks like it needs a bit of a tidy up as well. There are some half-implemented features there related to animation support that should either be linked to issues (to be fully implemented at a later date) or removed in the interests of having a cleaner code base.

mkhorton avatar Jul 28 '23 22:07 mkhorton