1
0
mirror of https://github.com/chylex/TweetDuck.git synced 2025-01-24 12:46:02 +01:00

Revert "Fix broken notification scrolling in CEF 65"

This reverts commit 1029ea5840.
This commit is contained in:
chylex 2018-05-04 14:00:41 +02:00
parent e41b5e5ff7
commit e7ee1d6be7

View File

@ -136,7 +136,7 @@ private IntPtr MouseHookProc(int nCode, IntPtr wParam, IntPtr lParam){
int eventType = wParam.ToInt32();
if (eventType == NativeMethods.WM_MOUSEWHEEL && IsCursorOverBrowser){
browser.SendMouseWheelEvent(1, 1, 0, BrowserUtils.Scale(NativeMethods.GetMouseHookData(lParam), Program.UserConfig.NotificationScrollSpeed*0.01), CefEventFlags.None);
browser.SendMouseWheelEvent(0, 0, 0, BrowserUtils.Scale(NativeMethods.GetMouseHookData(lParam), Program.UserConfig.NotificationScrollSpeed*0.01), CefEventFlags.None);
return NativeMethods.HOOK_HANDLED;
}
else if (eventType == NativeMethods.WM_XBUTTONDOWN && DesktopBounds.Contains(Cursor.Position)){