MicrosoftEdge / MicrosoftEdge/WebView2Feedback

Style/disable scrollbar PDF viewer

Open
#2,143 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug priority-low tracked
Dominant language
PowerShell
Stars
526
Forks
67
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the WPF NavigationCompleted handler and the ExecuteScriptAsync call shown in the repro. Compare the scrollbar behavior for a website and a PDF using WebView2 1.0.11.33 prerelease on Windows 10. Done means determining whether the PDF scrollbar can be customized or disabled and documenting the supported behavior or limitation.

Written by the indexing model from the issue text.

Assessment

Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.