<p></p>
<p>After a little bit of reading/experimenting, I think this is probably caused by the Webkit2 no longer requiring a GtkScrolledWindow and handling scrolling on its own in a separate process. Whenever the existing scrollbar adjustments are read, the value is always zero, so the hack that was previously added for the old Webkit version no longer works.</p>
<p>A possible workaround might be to run some javascript in the webview that can read the scroll position and pass it back up to the plugin's C code so it's able to save and then other JS to restore it.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany-plugins/issues/1055#issuecomment-776151165">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ56LAPDGS2FVEW3L4TS6F6DTANCNFSM4V3WCQPQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAIOWJ4GEZNKWFMWXA6SV4DS6F6DTA5CNFSM4V3WCQP2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFZBSA7I.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany-plugins/issues/1055#issuecomment-776151165",
"url": "https://github.com/geany/geany-plugins/issues/1055#issuecomment-776151165",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>