Show jsret value in update_scroll_pos callback

This commit is contained in:
Florian Bruhin 2016-07-26 23:26:20 +02:00
parent 414f09f648
commit 2121865bdd

View File

@ -211,7 +211,7 @@ class WebEngineScroller(browsertab.AbstractScroller):
"""Update the scroll position attributes when it changed."""
def update_scroll_pos(jsret):
"""Callback after getting scroll position via JS."""
assert isinstance(jsret, dict)
assert isinstance(jsret, dict), jsret
self._pos_perc = (jsret['perc']['x'], jsret['perc']['y'])
self._pos_px = QPoint(jsret['px']['x'], jsret['px']['y'])
self.perc_changed.emit(*self._pos_perc)