Skip to content
Permalink
Browse files
QtWebEngine: Implement scroll.to_point/.delta
  • Loading branch information
The-Compiler committed Jul 13, 2016
1 parent b78b89f commit 602d10c495b2ba5eb3318fd346d968008625bb44
Showing with 3 additions and 2 deletions.
  1. +3 −2 qutebrowser/browser/webengine/webenginetab.py
@@ -222,10 +222,11 @@ def to_perc(self, x=None, y=None):
self._tab.run_js_async(js_code)

def to_point(self, point):
log.stub()
self._tab.run_js_async("window.scroll({x}, {y});".format(
x=point.x(), y=point.y()))

def delta(self, x=0, y=0):
log.stub()
self._tab.run_js_async("window.scrollBy({x}, {y});".format(x=x, y=y))

def delta_page(self, x=0, y=0):
log.stub()

0 comments on commit 602d10c

Please sign in to comment.