mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-12 06:52:25 +00:00
Bug 498974: WidgetStack.panBy should round its parameters, r=gavin
This commit is contained in:
parent
bd3eef24b0
commit
716958ef3d
@ -416,6 +416,9 @@ WidgetStack.prototype = {
|
||||
//
|
||||
// if ignoreBarriers is true, then barriers are ignored for the pan.
|
||||
panBy: function panBy(dx, dy, ignoreBarriers) {
|
||||
dx = Math.round(dx);
|
||||
dy = Math.round(dy);
|
||||
|
||||
if (dx == 0 && dy ==0)
|
||||
return false;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user