Fix for keyboard increase/decrease volume
This commit is contained in:
		
							
								
								
									
										2
									
								
								dist/plyr.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								dist/plyr.js
									
									
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
							
								
								
									
										2
									
								
								dist/plyr.js.map
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								dist/plyr.js.map
									
									
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							@ -474,7 +474,7 @@ class Plyr {
 | 
			
		||||
     */
 | 
			
		||||
    increaseVolume(step) {
 | 
			
		||||
        const volume = this.media.muted ? 0 : this.volume;
 | 
			
		||||
        this.volume = volume + utils.is.number(step) ? step : 1;
 | 
			
		||||
        this.volume = volume + (utils.is.number(step) ? step : 1);
 | 
			
		||||
        return this;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
@ -484,7 +484,7 @@ class Plyr {
 | 
			
		||||
     */
 | 
			
		||||
    decreaseVolume(step) {
 | 
			
		||||
        const volume = this.media.muted ? 0 : this.volume;
 | 
			
		||||
        this.volume = volume - utils.is.number(step) ? step : 1;
 | 
			
		||||
        this.volume = volume - (utils.is.number(step) ? step : 1);
 | 
			
		||||
        return this;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user