Closed pixelzoom closed 9 years ago
In GraphDrawingNode:
// expand touch area horizontalZoomInButton.touchArea = horizontalZoomInButton.localBounds.dilate( 5, 5 ); horizontalZoomOutButton.touchArea = horizontalZoomOutButton.localBounds.dilate( 5, 5 ); verticalZoomInButton.touchArea = verticalZoomInButton.localBounds.dilate( 5, 5 ); verticalZoomOutButton.touchArea = verticalZoomOutButton.localBounds.dilate( 5, 5 );
This code will likely become buggy when scenery bounds become mutable. Recommended to change dilate calls to dilated, so that you're operating on a copy of localBounds, and not localBounds themselves.
dilate
dilated
Thanks @pixelzoom. Change to dilated method instead. Closing
In GraphDrawingNode:
This code will likely become buggy when scenery bounds become mutable. Recommended to change
dilate
calls todilated
, so that you're operating on a copy of localBounds, and not localBounds themselves.