[Pkg-mozext-commits] [firegestures] 12/18: fix: trail misalignment after resizing/moving window

David Prévot taffit at moszumanska.debian.org
Sat May 23 10:58:43 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository firegestures.

commit 207c11e8ddf11eb7eaa41698252b19fffe13a6b3
Author: Gomita <gomita at xuldev.org>
Date:   Thu May 21 00:22:52 2015 +0900

    fix: trail misalignment after resizing/moving window
---
 components/xdGestureHandler.js | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/components/xdGestureHandler.js b/components/xdGestureHandler.js
index 39aeb0a..f45aab2 100644
--- a/components/xdGestureHandler.js
+++ b/components/xdGestureHandler.js
@@ -654,12 +654,17 @@ xdGestureHandler.prototype = {
 
 	// called from _startGesture
 	_createTrail: function FGH__createTrail() {
+		var doc = this._drawArea.ownerDocument;
+		var box = doc.documentElement.boxObject;
 		if (this._trailArea) {
 			this._trailArea.style.display = "-moz-box";
+			this._trailOffsetX = box.screenX;
+			this._trailOffsetY = box.screenY;
+			var canvas = this._trailArea.firstChild;
+			canvas.setAttribute("width",  box.width);
+			canvas.setAttribute("height", box.height);
 			return;
 		}
-		var doc = this._drawArea.ownerDocument;
-		var box = doc.documentElement.boxObject;
 		var css = "-moz-user-focus: none !important;"
 		        + "-moz-user-select: none !important;"
 		        + "display: -moz-box !important;"

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/firegestures.git



More information about the Pkg-mozext-commits mailing list