tuarua / WebViewANE

WebView Adobe Air Native Extension for macOS 10.10+, Windows Desktop, iOS 9.0+ and Android 19+. This ANE provides access to a more modern webview from AIR.
Apache License 2.0
182 stars 50 forks source link

Feature request : Hide/disable scrollbars #300

Closed lwmirkk closed 2 years ago

lwmirkk commented 2 years ago

This is not a bug at all.

Thanks a lot. =)

tuarua commented 2 years ago

I have looked at this and the only way I can find is the way you describe.

eg c# - How can I get CefSharp to hide both the vertical and horizontal scrollbars when a webpage is loaded? - Stack Overflow

If you load a page, website which is smaller than the window (like the JS test page in sample app) then no scrollbars appear. I am not aware of any Cef settings which allow you to override the browser behaviour.

amaitland commented 2 years ago

If you load a page, website which is smaller than the window (like the JS test page in sample app) then no scrollbars appear. I am not aware of any Cef settings which allow you to override the browser behaviour.

In the context of CEF you can use Emulation.setScrollbarsHidden to disable scrollbars. CEF supports sending devtools commands directly to the browser.

The reporter says Android and CEF doesn't support Android.

tuarua commented 2 years ago

@lwmirkk See latest release

lwmirkk commented 2 years ago

Awwsome @tuarua ! I'm testing, but seems to be working very well. Thanks a lot. =)