osr: win: Implement page scroll mode (fixes #3849)

This commit is contained in:
Andrew Kurushin
2024-12-04 11:25:10 -05:00
committed by Marshall Greenblatt
parent 189b247282
commit 2dd1d1f94b
5 changed files with 28 additions and 9 deletions

View File

@ -1644,6 +1644,7 @@ gint BrowserWindowOsrGtk::ScrollEvent(GtkWidget* widget,
self->ApplyPopupOffset(mouse_event.x, mouse_event.y);
DeviceToLogical(mouse_event, device_scale_factor);
mouse_event.modifiers = GetCefStateModifiers(event->state);
mouse_event.modifiers |= EVENTFLAG_PRECISION_SCROLLING_DELTA;
static const int scrollbarPixelsPerGtkTick = 40;
int deltaX = 0;