Skip to content

Commit

Permalink
Adding preventMultitouch Display option, simFeature, and query parame…
Browse files Browse the repository at this point in the history
…ter boolean, see phetsims/scenery#1684
  • Loading branch information
jonathanolson committed Feb 10, 2025
1 parent da67b9f commit 264c30b
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion js/browser/initialize-globals.js
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,20 @@
*/
preventFullScreen: { type: 'flag' },

/**
* Allows prevention of multitouch in the sim (if for some reason the sim
* cannot be made to work gracefully with multitouch).
*
* This will mainly prevent multiple touch-level pointers, but mouse + touch
* or multiple mice will still be possible.
*
* See https://github.com/phetsims/scenery/issues/1684
*/
preventMultitouch: {
type: 'boolean',
defaultValue: packagePhet?.simFeatures?.defaultRegionAndCulture ?? false
},

/**
* shows profiling information for the sim
*/
Expand Down Expand Up @@ -1286,7 +1300,8 @@
supportsDynamicLocale: { type: 'boolean' },
colorProfiles: { type: 'array' },
supportedRegionsAndCultures: { type: 'array' },
defaultRegionAndCulture: { type: 'string' }
defaultRegionAndCulture: { type: 'string' },
preventMultitouch: { type: 'boolean' }
};

Object.keys( simFeaturesSchema ).forEach( schemaKey => {
Expand Down

0 comments on commit 264c30b

Please sign in to comment.