[Pkg-mozext-commits] [firegestures] 01/07: [e10s] fix: cannot find links when zoomed in/out
David Prévot
taffit at moszumanska.debian.org
Mon Feb 8 01:17:28 UTC 2016
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository firegestures.
commit 6e4650daeb68f3bf6234aefb32c4d490e21d0c73
Author: Gomita <gomita at xuldev.org>
Date: Sun Feb 7 12:19:24 2016 +0900
[e10s] fix: cannot find links when zoomed in/out
---
components/xdGestureHandler.js | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/components/xdGestureHandler.js b/components/xdGestureHandler.js
index f45aab2..a83af59 100644
--- a/components/xdGestureHandler.js
+++ b/components/xdGestureHandler.js
@@ -390,10 +390,11 @@ xdGestureHandler.prototype = {
this._isRemote = this._drawArea.mCurrentBrowser.getAttribute("remote") == "true";
// [e10s] get source node and invoke extra gesture in remote
if (this._isRemote) {
+ var zoom = this._drawArea.mCurrentBrowser.fullZoom;
this._gestureObserver.sendAsyncMessage("FireGestures:SwipeGesture", {
direction: direction,
- x: event.screenX - this._drawArea.mCurrentBrowser.boxObject.screenX,
- y: event.screenY - this._drawArea.mCurrentBrowser.boxObject.screenY,
+ x: (event.screenX - this._drawArea.mCurrentBrowser.boxObject.screenX) / zoom,
+ y: (event.screenY - this._drawArea.mCurrentBrowser.boxObject.screenY) / zoom,
});
return;
}
@@ -488,11 +489,12 @@ xdGestureHandler.prototype = {
this._createTrail();
// [e10s] tell remote browser that mouse gesture has started
if (this._isRemote) {
+ var zoom = this._drawArea.mCurrentBrowser.fullZoom;
this._gestureObserver.sendAsyncMessage("FireGestures:GestureStart", {
type: event.type,
button: event.button,
- x: event.screenX - this._drawArea.mCurrentBrowser.boxObject.screenX,
- y: event.screenY - this._drawArea.mCurrentBrowser.boxObject.screenY,
+ x: (event.screenX - this._drawArea.mCurrentBrowser.boxObject.screenX) / zoom,
+ y: (event.screenY - this._drawArea.mCurrentBrowser.boxObject.screenY) / zoom,
});
}
},
--
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