mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Merge pull request #632 from MetaMask/FixLogoPasswordFollow
Fix fox logo password following
This commit is contained in:
commit
12bd77f8b3
@ -51,7 +51,7 @@
|
|||||||
"inject-css": "^0.1.1",
|
"inject-css": "^0.1.1",
|
||||||
"jazzicon": "^1.1.3",
|
"jazzicon": "^1.1.3",
|
||||||
"menu-droppo": "^1.1.0",
|
"menu-droppo": "^1.1.0",
|
||||||
"metamask-logo": "^2.1.1",
|
"metamask-logo": "^2.1.2",
|
||||||
"mississippi": "^1.2.0",
|
"mississippi": "^1.2.0",
|
||||||
"multiplex": "^6.7.0",
|
"multiplex": "^6.7.0",
|
||||||
"once": "^1.3.3",
|
"once": "^1.3.3",
|
||||||
|
@ -15,7 +15,7 @@ function Mascot () {
|
|||||||
width: 200,
|
width: 200,
|
||||||
height: 200,
|
height: 200,
|
||||||
})
|
})
|
||||||
if (!this.logo.webGLSupport) return
|
|
||||||
this.refollowMouse = debounce(this.logo.setFollowMouse.bind(this.logo, true), 1000)
|
this.refollowMouse = debounce(this.logo.setFollowMouse.bind(this.logo, true), 1000)
|
||||||
this.unfollowMouse = this.logo.setFollowMouse.bind(this.logo, false)
|
this.unfollowMouse = this.logo.setFollowMouse.bind(this.logo, false)
|
||||||
}
|
}
|
||||||
@ -53,7 +53,6 @@ Mascot.prototype.handleAnimationEvents = function () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Mascot.prototype.lookAt = function (target) {
|
Mascot.prototype.lookAt = function (target) {
|
||||||
if (!this.logo.webGLSupport) return
|
|
||||||
this.unfollowMouse()
|
this.unfollowMouse()
|
||||||
this.logo.lookAt(target)
|
this.logo.lookAt(target)
|
||||||
this.refollowMouse()
|
this.refollowMouse()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user