diff options
author | Dan Finlay <dan@danfinlay.com> | 2016-09-09 11:31:42 +0800 |
---|---|---|
committer | Dan Finlay <dan@danfinlay.com> | 2016-09-09 11:31:42 +0800 |
commit | a4e4c854534a73caeb857cffb321b3b8f98f395a (patch) | |
tree | 181e5880ca8c64fa3aea7304fb53b93b42beecb1 /ui/app | |
parent | c97aef2b997e32aeab61d2a81a6513f237c66a31 (diff) | |
download | tangerine-wallet-browser-a4e4c854534a73caeb857cffb321b3b8f98f395a.tar tangerine-wallet-browser-a4e4c854534a73caeb857cffb321b3b8f98f395a.tar.gz tangerine-wallet-browser-a4e4c854534a73caeb857cffb321b3b8f98f395a.tar.bz2 tangerine-wallet-browser-a4e4c854534a73caeb857cffb321b3b8f98f395a.tar.lz tangerine-wallet-browser-a4e4c854534a73caeb857cffb321b3b8f98f395a.tar.xz tangerine-wallet-browser-a4e4c854534a73caeb857cffb321b3b8f98f395a.tar.zst tangerine-wallet-browser-a4e4c854534a73caeb857cffb321b3b8f98f395a.zip |
Fix fox logo password following
The new lightweight svg logo was not following text quite right.
The new `lookAt` method was not using the same logic the module was using internally on mouse movement.
I simply used that logic and exposed it via the old (expected) API, and got it behaving the way I like.
Diffstat (limited to 'ui/app')
-rw-r--r-- | ui/app/components/mascot.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ui/app/components/mascot.js b/ui/app/components/mascot.js index ae998406b..f015d0c4d 100644 --- a/ui/app/components/mascot.js +++ b/ui/app/components/mascot.js @@ -15,7 +15,7 @@ function Mascot () { width: 200, height: 200, }) - if (!this.logo.webGLSupport) return + this.refollowMouse = debounce(this.logo.setFollowMouse.bind(this.logo, true), 1000) this.unfollowMouse = this.logo.setFollowMouse.bind(this.logo, false) } @@ -53,7 +53,6 @@ Mascot.prototype.handleAnimationEvents = function () { } Mascot.prototype.lookAt = function (target) { - if (!this.logo.webGLSupport) return this.unfollowMouse() this.logo.lookAt(target) this.refollowMouse() |