phetsims / circuit-construction-kit-common

"Circuit Construction Kit: Basics" is an educational simulation in HTML5, by PhET Interactive Simulations.
GNU General Public License v3.0
10 stars 10 forks source link

CircuitElementNode startDragListener should use press instead of down for the forwarded event #992

Closed jessegreenberg closed 11 months ago

jessegreenberg commented 12 months ago

While checking on https://github.com/phetsims/joist/issues/769, I noticed that the forwarded press to bring circuit elements out of the toolbox is using DragListener.down (scenery-internal) instead of DragListener.press(). Using press will resolve https://github.com/phetsims/joist/issues/769#issuecomment-1072430805. Ill commit a change for review.

jessegreenberg commented 12 months ago

@samreid would you like to review this change?

samreid commented 11 months ago

Code review looks good and behavior (including during pan/zoom) looks good, thanks, closing.