Skip to content

Commit 69727ba

Browse files
committed
gestures: Adjust to amplified max volume, not normal.
Fix a bit of formatting also.
1 parent fce9aad commit 69727ba

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

js/ui/gestures/actions.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ var VolumeAction = class extends BaseAction {
319319

320320
this.ignoring = true;
321321

322-
this.max_volume = mixer.get_vol_max_norm();
322+
this.max_volume = mixer.get_vol_max_amplified();
323323
this.pct_step = Math.ceil(this.max_volume / 100);
324324
}
325325

@@ -335,11 +335,11 @@ var VolumeAction = class extends BaseAction {
335335

336336
if (this.ignoring) {
337337
if (up) {
338-
if (int_pct * this.pct_step < sink.volume - 2*this.pct_step) {
338+
if (int_pct * this.pct_step < sink.volume - 2 * this.pct_step) {
339339
return;
340340
}
341341
} else {
342-
if (int_pct * this.pct_step >= sink.volume + 2*this.pct_step) {
342+
if (int_pct * this.pct_step >= sink.volume + 2 * this.pct_step) {
343343
return;
344344
}
345345
}

0 commit comments

Comments
 (0)