aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Serrano <kevin.serrano@consensys.net>2017-05-03 22:21:42 +0800
committerKevin Serrano <kevin.serrano@consensys.net>2017-05-03 22:21:42 +0800
commit061f56b2070c4f4720a147a901e8879ca193f2ae (patch)
tree7064bd548977f3462fe7c9fa2d81a1a519b7cb94
parent6f40447015e7ab3c910c04e2671e9161dcb6ea16 (diff)
downloadtangerine-wallet-browser-061f56b2070c4f4720a147a901e8879ca193f2ae.tar
tangerine-wallet-browser-061f56b2070c4f4720a147a901e8879ca193f2ae.tar.gz
tangerine-wallet-browser-061f56b2070c4f4720a147a901e8879ca193f2ae.tar.bz2
tangerine-wallet-browser-061f56b2070c4f4720a147a901e8879ca193f2ae.tar.lz
tangerine-wallet-browser-061f56b2070c4f4720a147a901e8879ca193f2ae.tar.xz
tangerine-wallet-browser-061f56b2070c4f4720a147a901e8879ca193f2ae.tar.zst
tangerine-wallet-browser-061f56b2070c4f4720a147a901e8879ca193f2ae.zip
Fox watches over us again.
-rw-r--r--ui/app/unlock.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/ui/app/unlock.js b/ui/app/unlock.js
index 5014744f5..1aee3c5d0 100644
--- a/ui/app/unlock.js
+++ b/ui/app/unlock.js
@@ -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,
+ })
}