aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoranekos2010-02-03 11:57:29 +0000
committeranekos2010-02-03 11:57:29 +0000
commitdc88d587c061735c93a2e8be88a2ac8da53f5be6 (patch)
tree4445dd1928404c596ca4a90081f9f2648b2f7c77
parentc305945b9f17b9d7529f1431fac9c599ab50e109 (diff)
downloadvimperator-plugins-dc88d587c061735c93a2e8be88a2ac8da53f5be6.tar.bz2
スクロール位置を戻すコードの修正
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@36605 d0d07461-0603-4401-acd4-de1884942a52
-rw-r--r--stella.js10
1 files changed, 7 insertions, 3 deletions
diff --git a/stella.js b/stella.js
index 09ee63a..fb160a5 100644
--- a/stella.js
+++ b/stella.js
@@ -39,7 +39,7 @@ let PLUGIN_INFO =
<name lang="ja">すてら</name>
<description>For Niconico/YouTube/Vimeo, Add control commands and information display(on status line).</description>
<description lang="ja">ニコニコ動画/YouTube/Vimeo 用。操作コマンドと情報表示(ステータスライン上に)追加します。</description>
- <version>0.21.0</version>
+ <version>0.22.1</version>
<author mail="anekos@snca.net" homepage="http://d.hatena.ne.jp/nokturnalmortum/">anekos</author>
<license>new BSD License (Please read the source code comments of this plugin)</license>
<license lang="ja">修正BSDライセンス (ソースコードのコメントを参照してください)</license>
@@ -962,9 +962,13 @@ Thanks:
let win = Buffer.findScrollableWindow();
this.storage.scrollPositionBeforeLarge = {x: win.scrollX, y: win.scrollY};
}
+
this.player.ext_setVideoSize(value ? NicoPlayer.SIZE_LARGE : NicoPlayer.SIZE_NORMAL);
- let (pos = this.storage.scrollPositionBeforeLarge)
- (value || typeof pos == "undefined" || buffer.scrollTo(pos.x, pos.y));
+
+ let pos = this.storage.scrollPositionBeforeLarge;
+ if (!value && typeof pos != "undefined")
+ setTimeout(function () buffer.scrollTo(pos.x, pos.y), 0);
+
return this.large;
},