mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Merge pull request #1362 from MetaMask/FoxLookAway
Make fox look away while typing password
This commit is contained in:
commit
b466de8306
@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
## Current Master
|
## Current Master
|
||||||
|
|
||||||
|
- Made fox less nosy.
|
||||||
|
|
||||||
## 3.6.1 2017-4-25
|
## 3.6.1 2017-4-25
|
||||||
|
|
||||||
- Fix bug where error was reported in debugger console when Chrome opened a new window.
|
- Fix bug where error was reported in debugger console when Chrome opened a new window.
|
||||||
|
@ -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 boundingRect = element.getBoundingClientRect()
|
var viewRect = element.getBoundingClientRect()
|
||||||
var coordinates = getCaretCoordinates(element, element.selectionEnd)
|
var carat = getCaretCoordinates(element, element.selectionEnd)
|
||||||
this.animationEventEmitter.emit('point', {
|
var x = viewRect.right - carat.left + element.scrollLeft
|
||||||
x: boundingRect.left + coordinates.left - element.scrollLeft,
|
var y = 100
|
||||||
y: boundingRect.top + coordinates.top - element.scrollTop,
|
var pointAt = { x, y }
|
||||||
})
|
this.animationEventEmitter.emit('point', pointAt)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user