phetsims / wave-on-a-string

"Wave on a String" is an educational simulation in HTML5, by PhET Interactive Simulations.
http://phet.colorado.edu/en/simulation/wave-on-a-string
GNU General Public License v3.0
7 stars 8 forks source link

Touch enhancements #34

Closed jonathanolson closed 10 years ago

jonathanolson commented 10 years ago

Current touch areas by default: woas-touch-areas-2

Of note:

Please append ?showPointerAreas to the URL to visualize, and if possible use a touch device for testing.

mlearner1 commented 10 years ago

As for the items

From my point of view, there're 2 different approaches: 1) modify lib components (Buttons, Radiobuttons), so that programmer can easily change touch areas in all PHET simulations, not WOAS only. In this case, modifications should be made by library developers (not MLL) 2) modify Buttons and Radiobutton in WOAS simulation only, not in the lib. We can easily follow this approach and make changes on our side. Just want to check.

Please let me know what approach you prefer. Feel you free to point me out if I missed something

jonathanolson commented 10 years ago

In the future we may be adding default mouse/touch areas for common components, but for now just set the touchArea/mouseArea properties on the nodes directly.