Skip to content
This repository was archived by the owner on May 17, 2021. It is now read-only.

Conversation

@Anemy
Copy link
Member

@Anemy Anemy commented Mar 16, 2021

COMPASS-4432

Quick fix so that it only registers mouse events that occur inside the mouse target area. We could probably do something more fancy, but I'm not sure we want to invest the time right now.

Here's what it looks like now:

cursor.not.glitching.mp4

Copy link

@addaleax addaleax left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just to make sure I understand, this works because mouseTargetEnter refers to the freshly appended rect and not the one pointed to by mouseTarget, right?

@Anemy
Copy link
Member Author

Anemy commented Mar 16, 2021

@addaleax - Yes, it looks like that's what was causing the issue. Looks like this fix might cause an issue with cloud though - I think this issue came up as a result to the changes from here #33
Going to look into the root of the issue a bit more (why the original mouse target can't work) and maybe update this before merging

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants