Bug 143710
| Summary: | [GTK] Webkit2Gtk: no api to get and set scroll position | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Jan <EvilTwin1> |
| Component: | WebKitGTK | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED WORKSFORME | ||
| Severity: | Normal | CC: | chavarria1991 |
| Priority: | P3 | ||
| Version: | 528+ (Nightly build) | ||
| Hardware: | PC | ||
| OS: | Linux | ||
Jan
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.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Marcos ChavarrÃa Teijeiro (irc: chavaone)
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
Jan
I think this can be closed now.