mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-10-01 23:32:02 -05:00
Switching battle tabs should honour the 'noanim' pref (#788)
This commit is contained in:
@@ -92,7 +92,10 @@
|
||||
},
|
||||
focus: function () {
|
||||
this.tooltips.hideTooltip();
|
||||
if (this.battle.playbackState === 3) this.battle.play();
|
||||
if (this.battle.playbackState === 3) {
|
||||
this.battle.play();
|
||||
if (Tools.prefs('noanim')) this.battle.fastForwardTo(-1);
|
||||
}
|
||||
ConsoleRoom.prototype.focus.call(this);
|
||||
},
|
||||
blur: function () {
|
||||
|
||||
Reference in New Issue
Block a user