Moved loading ripple to centre upon enter press rather than click

This commit is contained in:
irontiga 2022-06-16 20:38:29 +12:00
parent 01ae44487c
commit 4394bee302

View File

@ -617,9 +617,12 @@ class LoginSection extends connect(store)(LitElement) {
// First decrypt... // First decrypt...
this.loadingRipple.welcomeMessage = this.renderPrepareText() this.loadingRipple.welcomeMessage = this.renderPrepareText()
const x = e.clientX !== undefined ? e.clientX : e.explicitOriginalTarget.getBoundingClientRect().left + window.scrollX
const y = e.clientY !== undefined ? e.clientY : e.explicitOriginalTarget.getBoundingClientRect().top + window.scrollY
this.loadingRipple.open({ this.loadingRipple.open({
x: e.clientX, x: x,
y: e.clientY y: y
}) })
.then(() => { .then(() => {
const source = this.walletSources[type]() const source = this.walletSources[type]()