-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add interactive highlights for sim-specific draggable objects. #53
Comments
@arouinfar ready for review, close if OK. |
Thanks @pixelzoom. The electromagnet and pickup coil appear to have an extra interactive highlight when mousing over the back portion of the coils, but otherwise things are looking good on main. I do not see the extra highlight for keyboard focus, just interactive highlights with the mouse. |
Yes indeed, see #56. |
I tried this change in CoilNode: this.backgroundNode = new FELMovableNode( coil, {
hasKeyboardDragListener: false,
+ interactiveHighlightEnabled: false ... but then there is no interactive highlight for CoilNode when the pointer is over backgroundNode. |
@arouinfar and I discussed. The foreground and background are separate Nodes, and must be separate Nodes if the B-field and magnets are to "pass through" the coil. Rather than try to make the foreground interactive highlight appear when over the background, we're going to live with 2 interactive highlights. (We will have one focus rectangle, which is very doable and already implemented. |
See interactive-highlights-quickstart-guide.md.
The text was updated successfully, but these errors were encountered: