Revert "Only emit perc_changed signal when the percentage actually changed"
This reverts commit 1d50c2c39a
.
This breaks various end2end test relying on getting log messages for scrolling.
This commit is contained in:
parent
cb357b326d
commit
54e5176f28
@ -106,7 +106,6 @@ Fixes
|
||||
- The "try again" button on error pages works correctly again.
|
||||
- :spawn -u -d is now disallowed.
|
||||
- :spawn -d shows error messages correctly now.
|
||||
- Performance improvements for smooth scrolling
|
||||
|
||||
v0.11.0
|
||||
-------
|
||||
|
@ -333,10 +333,9 @@ class WebEngineScroller(browsertab.AbstractScroller):
|
||||
perc_y = min(100, round(100 / dy * jsret['px']['y']))
|
||||
|
||||
self._at_bottom = math.ceil(jsret['px']['y']) >= dy
|
||||
self._pos_perc = perc_x, perc_y
|
||||
|
||||
if self._pos_perc != (perc_x, perc_y):
|
||||
self._pos_perc = perc_x, perc_y
|
||||
self.perc_changed.emit(*self._pos_perc)
|
||||
self.perc_changed.emit(*self._pos_perc)
|
||||
|
||||
js_code = javascript.assemble('scroll', 'pos')
|
||||
self._tab.run_js_async(js_code, update_pos_cb)
|
||||
|
Loading…
Reference in New Issue
Block a user