Fix cur_scroll_page regression.
This commit is contained in:
parent
ab89a3baf0
commit
2779b2f42e
@ -288,10 +288,10 @@ class TabbedBrowser(TabWidget):
|
|||||||
def cur_scroll_page(self, mx, my, count=1):
|
def cur_scroll_page(self, mx, my, count=1):
|
||||||
"""Scroll the frame mx pages to the right and my pages down."""
|
"""Scroll the frame mx pages to the right and my pages down."""
|
||||||
# FIXME this might not work with HTML frames
|
# FIXME this might not work with HTML frames
|
||||||
size = self.page_.viewportSize()
|
page = self.currentWidget().page_
|
||||||
self.currentWidget().page_.mainFrame().scroll(
|
size = page.viewportSize()
|
||||||
int(count) * float(mx) * size.width(),
|
page.mainFrame().scroll(int(count) * float(mx) * size.width(),
|
||||||
int(count) * float(my) * size.height())
|
int(count) * float(my) * size.height())
|
||||||
|
|
||||||
def switch_prev(self, count=1):
|
def switch_prev(self, count=1):
|
||||||
"""Switch to the ([count]th) previous tab.
|
"""Switch to the ([count]th) previous tab.
|
||||||
|
Loading…
Reference in New Issue
Block a user