Bug 143710

Summary: [GTK] Webkit2Gtk: no api to get and set scroll position
Product: WebKit Reporter: Jan <EvilTwin1>
Component: WebKitGTKAssignee: Nobody <webkit-unassigned>
Status: RESOLVED WORKSFORME    
Severity: Normal CC: chavarria1991
Priority: P3    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: Linux   

Description Jan 2015-04-14 05:00:19 PDT
Currently there seems to be no way to get and set the scroll position of the webview.
This was possible in webkit1 because the webview implemented the gtk scrollable interface and could be placed inside an scrolledwindow.
It would be nice to have this functionality back with webkit2.
Comment 1 Marcos Chavarría Teijeiro (irc: chavaone) 2015-04-15 00:58:39 PDT
You can use JavaScript to get and set the scroll position. Using window.scrollTo(x,y) JS function and window.scrollX and window.scrollY properties.

https://wiki.gnome.org/Projects/WebKitGtk/ProgrammingGuide/Cookbook#Scrolling
Comment 2 Jan 2016-02-04 04:02:23 PST
I think this can be closed now.