mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Merge pull request #1369 from MetaMask/foxrevert
Revert the fox animation
This commit is contained in:
commit
a72f505090
@ -155,7 +155,7 @@ ConfigManager.prototype.getCurrentRpcAddress = function () {
|
|||||||
|
|
||||||
case 'kovan':
|
case 'kovan':
|
||||||
return KOVAN_RPC
|
return KOVAN_RPC
|
||||||
|
|
||||||
case 'rinkeby':
|
case 'rinkeby':
|
||||||
return RINKEBY_RPC
|
return RINKEBY_RPC
|
||||||
|
|
||||||
|
@ -109,10 +109,10 @@ UnlockScreen.prototype.submitPassword = function (event) {
|
|||||||
UnlockScreen.prototype.inputChanged = function (event) {
|
UnlockScreen.prototype.inputChanged = function (event) {
|
||||||
// tell mascot to look at page action
|
// tell mascot to look at page action
|
||||||
var element = event.target
|
var element = event.target
|
||||||
var viewRect = element.getBoundingClientRect()
|
var boundingRect = element.getBoundingClientRect()
|
||||||
var carat = getCaretCoordinates(element, element.selectionEnd)
|
var coordinates = getCaretCoordinates(element, element.selectionEnd)
|
||||||
var x = viewRect.right - carat.left + element.scrollLeft
|
this.animationEventEmitter.emit('point', {
|
||||||
var y = 100
|
x: boundingRect.left + coordinates.left - element.scrollLeft,
|
||||||
var pointAt = { x, y }
|
y: boundingRect.top + coordinates.top - element.scrollTop,
|
||||||
this.animationEventEmitter.emit('point', pointAt)
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user