I'm comparing two examples given in class, one was for a 3-state
button and the other was for a scroll bar. I'm confused about how we
are allowed to keep track of where the mouse is in the view, since
these 2 examples use different approaches.
1) For the 3-state button, we created %MouseEnter / %MouseExit input
events, and tracked a state variable inside {true, false}.
2) For the scroll bar, we had varies queries (e.g. ?InThumb, ?
InGutterBelowThumb, etc.) for keeping track of wbere in the component
we were.
I find 2) to be a preferable option. Can I assume this option will be
valid on the exam if I need to write a production system?