From c056496b4a7af7b273c2c70386cef4acdcba380d Mon Sep 17 00:00:00 2001 From: Yvonne Yip Date: Mon, 16 Sep 2013 12:44:30 -0700 Subject: [PATCH] polymer-ui-menu-button: flip parallax tilt direction --- polymer-ui-menu-button/polymer-ui-menu-button.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(' +