1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-26 20:39:08 +01:00

Fox watches over us again.

This commit is contained in:
Kevin Serrano 2017-05-03 07:21:42 -07:00
parent 6f40447015
commit 061f56b207
No known key found for this signature in database
GPG Key ID: BF999DEFC7371BA1

View File

@ -109,10 +109,10 @@ UnlockScreen.prototype.submitPassword = function (event) {
UnlockScreen.prototype.inputChanged = function (event) {
// tell mascot to look at page action
var element = event.target
var viewRect = element.getBoundingClientRect()
var carat = getCaretCoordinates(element, element.selectionEnd)
var x = viewRect.right - carat.left + element.scrollLeft
var y = 100
var pointAt = { x, y }
this.animationEventEmitter.emit('point', pointAt)
var boundingRect = element.getBoundingClientRect()
var coordinates = getCaretCoordinates(element, element.selectionEnd)
this.animationEventEmitter.emit('point', {
x: boundingRect.left + coordinates.left - element.scrollLeft,
y: boundingRect.top + coordinates.top - element.scrollTop,
})
}