mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 732016 - Re-enable scroll clamping but set the desired scrollport using the new scrollport API. r=Cwiiis a=fennec
This commit is contained in:
parent
be2da87d6f
commit
75f6410e2c
@ -1560,7 +1560,6 @@ Tab.prototype = {
|
||||
|
||||
let frameLoader = this.browser.QueryInterface(Ci.nsIFrameLoaderOwner).frameLoader;
|
||||
frameLoader.renderMode = Ci.nsIFrameLoader.RENDER_MODE_ASYNC_SCROLL;
|
||||
frameLoader.clampScrollPosition = false;
|
||||
|
||||
// only set tab uri if uri is valid
|
||||
let uri = null;
|
||||
@ -1726,8 +1725,10 @@ Tab.prototype = {
|
||||
let x = aViewport.x / aViewport.zoom;
|
||||
let y = aViewport.y / aViewport.zoom;
|
||||
|
||||
// Set scroll position
|
||||
// Set scroll-port size and scroll position (both in CSS pixels)
|
||||
let win = this.browser.contentWindow;
|
||||
win.QueryInterface(Ci.nsIInterfaceRequestor).getInterface(Ci.nsIDOMWindowUtils).setScrollPositionClampingScrollPortSize(
|
||||
gScreenWidth / aViewport.zoom, gScreenHeight / aViewport.zoom);
|
||||
win.scrollTo(x, y);
|
||||
this.userScrollPos.x = win.scrollX;
|
||||
this.userScrollPos.y = win.scrollY;
|
||||
|
Loading…
Reference in New Issue
Block a user