diff --git a/polymer-ui-menu-button/polymer-ui-menu-button.html b/polymer-ui-menu-button/polymer-ui-menu-button.html index a5e879e..9ab32cd 100644 --- a/polymer-ui-menu-button/polymer-ui-menu-button.html +++ b/polymer-ui-menu-button/polymer-ui-menu-button.html @@ -112,8 +112,8 @@ tb: tiltTB }; } else { - var transX = ((this.tilt.lr - tiltLR) % 90) / 90 * 8; - var transY = ((this.tilt.tb - tiltTB) % 90) / 90 * 13; + var transX = ((tiltLR - this.tilt.lr) % 90) / 90 * 8; + var transY = ((tiltTB - this.tilt.tb) % 90) / 90 * 13; this.$.overlayMenu.style['-webkit-transform'] = 'translate3d(' + transX + 'px,' + transY + 'px,0)'; this.$.arrow.style['-webkit-transform'] = 'translate3d(' +