aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Renard 2019-10-05 13:29:49 -0300
committerLibravatar Renard 2019-10-05 13:29:49 -0300
commit6d542fc2ecb4bc97038e104d5541100772540676 (patch)
treed3f4e62c3c489eb379218b6834e1bc75ac600811
parent4005dfba4568b9666557a8e9a5aa8e58362bb59b (diff)
downloadbai-client-6d542fc2ecb4bc97038e104d5541100772540676.tar.gz
bai-client-6d542fc2ecb4bc97038e104d5541100772540676.tar.xz
bai-client-6d542fc2ecb4bc97038e104d5541100772540676.zip
Logo bugfix
-rw-r--r--src/Home.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/Home.js b/src/Home.js
index 1695ed4..9ba6c0b 100644
--- a/src/Home.js
+++ b/src/Home.js
@@ -66,10 +66,12 @@ class Home extends Component {
}
handeMouseMove(e) {
- let traX = (4 * e.pageX) / 480;
- let traY = (4 * e.pageY) / 250;
- document.getElementById("baiLogo").style.backgroundPosition =
- traX + "%" + traY + "%";
+ if (this.state.isLoaded) {
+ let traX = (4 * e.pageX) / 480;
+ let traY = (4 * e.pageY) / 250;
+ document.getElementById("baiLogo").style.backgroundPosition =
+ traX + "%" + traY + "%";
+ }
}
componentWillUnmount() {