Skip to content

Commit

Permalink
Split layers on safari to avoid an artifact near the field sign, see #…
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Feb 29, 2024
1 parent b0bbd23 commit 3009d45
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions js/common/view/SelectorNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import angleLeftSolidShape from '../../../../sherpa/js/fontawesome-5/angleLeftSo
import TProperty from '../../../../axon/js/TProperty.js';
import PhetioObject from '../../../../tandem/js/PhetioObject.js';
import nullSoundPlayer from '../../../../tambo/js/shared-sound-players/nullSoundPlayer.js';
import { platform } from '../../../../phet-core/js/imports.js';

type SelfOptions = {
playSound: ( selectedItem: number ) => void;
Expand All @@ -45,6 +46,10 @@ export default class SelectorNode extends AccessibleNumberSpinner( Node, 0 ) {
// mouse and touch events so this highlight is hidden. Instead, default highlights surround the arrow buttons.
interactiveHighlight: 'invisible',

// Prevent a spurious white rectangle artifact that appears on Safari when the buttons become enable and disabled
// which seems to be related to the filters used for the enabled/disabled appearance. See https://github.com/phetsims/projectile-data-lab/issues/178
layerSplit: platform.safari,

// PhET-iO
tandem: Tandem.REQUIRED,
tandemNameSuffix: 'SelectorNode',
Expand Down

0 comments on commit 3009d45

Please sign in to comment.