Skip to content

Commit

Permalink
Revert "Prevent long strings from leaking out of the touch/mouse area…
Browse files Browse the repository at this point in the history
…, workaround for #513"

This reverts commit 12bdfd2
  • Loading branch information
samreid committed Feb 8, 2021
1 parent b3650ad commit 6e47813
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions js/common/view/ToolboxPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
*/

import Vector2 from '../../../../dot/js/Vector2.js';
import Shape from '../../../../kite/js/Shape.js';
import DragListener from '../../../../scenery/js/listeners/DragListener.js';
import HBox from '../../../../scenery/js/nodes/HBox.js';
import waveInterference from '../../waveInterference.js';
Expand Down Expand Up @@ -53,9 +52,6 @@ class ToolboxPanel extends WaveInterferencePanel {
// Node used to create the icon
isStopwatchVisibleProperty.value = true;
const stopwatchNodeIcon = stopwatchNode.rasterized().mutate( { scale: 0.45 } );

// Prevent long strings from leaking out of the touch/mouse area, workaround for https://github.com/phetsims/wave-interference/issues/513
stopwatchNodeIcon.clipArea = Shape.bounds( stopwatchNodeIcon.localBounds.dilated( 2 ) );
isStopwatchVisibleProperty.value = false;

// The draggable icon, which has an overlay to make the buttons draggable instead of pressable
Expand Down

0 comments on commit 6e47813

Please sign in to comment.