MicrosoftEdge / WebView2Feedback

Feedback and discussions about Microsoft Edge WebView2
https://aka.ms/webview2
423 stars 51 forks source link

Style/disable scrollbar PDF viewer #2143

Open W-i-t-w-e opened 2 years ago

W-i-t-w-e commented 2 years ago

Description

In a WPF application I want to use the WebView2 as a PDF viewer. But because the default scrollbar doesn't comply with the application style, I'd like to customize or adleast disable it.

while showing a website, I'm able to hide the scrollbar, but when loading a pdf, it is still visible.

Version WebView2: 1.0.11.33 prerelease Framework WPF, .net core 3.1 OS: Windows 10 Professional 20H2

Repro Steps

on navigation completed event, I use the executescript async to disable the scrollbar method

scroll website

but when loading a pdf, it has no effect

scroll pdf

when I paste the style to the console, the scrollbar disapears, so I believe that it is a bug.

console

grafik

AB#38097610

champnic commented 2 years ago

Thanks for the bug report @Soelkweiler - I've added it to our backlog.

darbid commented 1 year ago

Maybe #2796 would help with different scroll bars.

nishitha-burman commented 9 months ago

@W-i-t-w-e which style would you like the scrollbar to be in?

Thanks!