Skip to content

Commit

Permalink
Converting dot Utils usage, see phetsims/dot#4
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanolson committed Feb 14, 2025
1 parent 717c87f commit 7f92399
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/VibrationManageriOS.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
* @author Jesse Greenberg (PhET Interactive Simulations)
*/

import Utils from '../../dot/js/Utils.js';
import optionize, { EmptySelfOptions } from '../../phet-core/js/optionize.js';
import IntentionalAny from '../../phet-core/js/types/IntentionalAny.js';
import tappi from './tappi.js';
import { clamp } from '../../dot/js/util/clamp.js';

/**
* @deprecated - This strategy is being abandoned for an android specific solution.
Expand Down Expand Up @@ -141,7 +141,7 @@ class VibrationManageriOS {
*/
public vibrateAtFrequencyForever( frequency: number, intensity?: number ): void {
intensity = typeof intensity === 'number' ? intensity : 1;
intensity = Utils.clamp( intensity, 0, 1 );
intensity = clamp( intensity, 0, 1 );
this.debug( `${intensity}` );

if ( this.vibrationMessageHandlers && this.vibrationMessageHandlers.vibrateFrequencyForeverMessageHandler ) {
Expand Down

0 comments on commit 7f92399

Please sign in to comment.