diff options
author | Renard | 2019-10-05 13:29:49 -0300 |
---|---|---|
committer | Renard | 2019-10-05 13:29:49 -0300 |
commit | 6d542fc2ecb4bc97038e104d5541100772540676 (patch) | |
tree | d3f4e62c3c489eb379218b6834e1bc75ac600811 /src | |
parent | 4005dfba4568b9666557a8e9a5aa8e58362bb59b (diff) | |
download | bai-client-6d542fc2ecb4bc97038e104d5541100772540676.tar.gz bai-client-6d542fc2ecb4bc97038e104d5541100772540676.tar.xz bai-client-6d542fc2ecb4bc97038e104d5541100772540676.zip |
Logo bugfix
Diffstat (limited to 'src')
-rw-r--r-- | src/Home.js | 10 |
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() { |