Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
polymer-ui-menu-button: flip parallax tilt direction
Browse files Browse the repository at this point in the history
  • Loading branch information
Yvonne Yip committed Sep 16, 2013
1 parent 7f014cd commit c056496
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions polymer-ui-menu-button/polymer-ui-menu-button.html
Original file line number Diff line number Diff line change
Expand Up @@ -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(' +
Expand Down

0 comments on commit c056496

Please sign in to comment.