penguin/AstroJS

Javascript framework for my blog

commit 5b1955ced7426d5730befa8422ac769dedaa9c38

author斟酌 鵬兄 <tgckpg@gmail.com>
date2016-06-04T05:09:39Z
subjectfirefox does not support backgroundPositionY
commit 5b1955ced7426d5730befa8422ac769dedaa9c38
Author: 斟酌 鵬兄 <tgckpg@gmail.com>
Date:   2016-06-04T05:09:39Z

    firefox does not support backgroundPositionY
---
 botanjs/src/Astro/Blog/Layout/MainFrame.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/botanjs/src/Astro/Blog/Layout/MainFrame.js b/botanjs/src/Astro/Blog/Layout/MainFrame.js
index 33c1881..9439346 100644
--- a/botanjs/src/Astro/Blog/Layout/MainFrame.js
+++ b/botanjs/src/Astro/Blog/Layout/MainFrame.js
@@ -240,7 +240,7 @@
 			, function()
 			{
 				var p = wsupp.scrollTop / ( wsupp.scrollHeight - wsupp.clientHeight );
-				bWrapper.style.backgroundPositionY = ( p * 100 ) + "%";
+				bWrapper.style.backgroundPosition = "50% " + ( p * 100 ) + "%";
 			}
 			, 15
 		);