Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WPF/OffScreen Mouse wheel becomes unresponsive #2408

Closed
amaitland opened this issue Jun 4, 2018 · 8 comments
Closed

WPF/OffScreen Mouse wheel becomes unresponsive #2408

amaitland opened this issue Jun 4, 2018 · 8 comments
Labels
Milestone

Comments

@amaitland
Copy link
Member

  • What version of the product are you using?
    65-pre01 and 66 based CEF builds

  • What architecture x86 or x64?

Both

  • On what operating system?
    • Win7, Win 8, Win10, etc?

Win 10, likely Win 7 as well

  • Are you using WinForms, WPF or OffScreen?

WPF and OffScreen

  • What steps will reproduce the problem?
    After reloading a page 3-4 times scrolling no longer works. SendMouseWheelEvent method

  • What is the expected output? What do you see instead?

Scrolling with mouse should function normally

https://bitbucket.org/chromiumembedded/cef/issues/2400/scroll-wheel-becomes-non-functional-with#comment-44369181

https://bitbucket.org/chromiumembedded/cef/issues/2214/osr-scroll-is-erratic-after-using-mouse

https://bitbucket.org/chromiumembedded/cef/issues/2438/osr-mouse-wheel-scrolling-sometimes-stop

@amaitland
Copy link
Member Author

--disable-features is already set and as such won't be overridden with the current implementation see https://github.com/cefsharp/CefSharp/blob/master/CefSharp.Core/Internals/CefSharpApp.h#L115

@amaitland amaitland added this to the 65.0.0 milestone Jun 12, 2018
@amaitland
Copy link
Member Author

Looks like disabling TouchpadAndWheelScrollLatching resolves the problem.

Upstream PR to resolve the problem was submitted a few days ago https://bitbucket.org/chromiumembedded/cef/pull-requests/167/add-mousewheelphasehandler-for-osr-issue/diff

amaitland added a commit that referenced this issue Jun 20, 2018
Add Hack to CefSharpApp to allow for setting of disable-features command line arg
Add the example command line args
#2408
amaitland added a commit that referenced this issue Jun 20, 2018
Add Hack to CefSharpApp to allow for setting of disable-features command line arg
Add the example command line args
#2408
amaitland added a commit that referenced this issue Jun 25, 2018
In ChromiumWebBrowser disable by default when default call to Cef.Initialize

Issue #2408
@amaitland
Copy link
Member Author

Helper method added in 65.0.0-pre02

var settings = new CefSettings();
settings.DisableTouchpadAndWheelScrollLatching();

See fda291b#diff-8504643e16a7bcd2d9428f463a767ff9R111 for an example. This only been added to the cefsharp/65 branch as I'm hoping the issue will be resolved upstream shortly.

@amaitland amaitland removed the blocking label Jul 6, 2018
@amaitland
Copy link
Member Author

disable-threaded-scrolling might be worth a try if using SendMouseWheelEvent in WinForms.

@amaitland
Copy link
Member Author

--disable-threaded-scrolling=1 --disable-features=TouchpadAndWheelScrollLatching,AsyncWheelEvents together might also be required for WPF/OffScreen as per https://bitbucket.org/chromiumembedded/cef/issues/2214/osr-scroll-is-erratic-after-using-mouse#comment-45970697

@amaitland
Copy link
Member Author

Changes have been merged into CEF master, they will only appear in version 69. Relevant commit https://bitbucket.org/chromiumembedded/cef/commits/fad6aec5d0f02853ff6b8af403c5b75d4764e3cb

@amaitland
Copy link
Member Author

With #2477 the values to workaround this issue will be set by default. Will be officially fixed in 69, with the workaround enabled in 67.

amaitland added a commit that referenced this issue Sep 10, 2018
@amaitland
Copy link
Member Author

The AsyncWheelEvents and TouchpadAndWheelScrollLatching feature flags have been removed from Chromium in https://crrev.com/e6d81f47c87.

https://bitbucket.org/chromiumembedded/cef/issues/2214/osr-scroll-is-erratic-after-using-mouse#comment-46738015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant