20 lines
1.0 KiB
Diff
20 lines
1.0 KiB
Diff
diff -up chromium-58.0.3029.96/ui/events/devices/x11/device_data_manager_x11.cc.revert chromium-58.0.3029.96/ui/events/devices/x11/device_data_manager_x11.cc
|
|
--- chromium-58.0.3029.96/ui/events/devices/x11/device_data_manager_x11.cc.revert 2017-05-08 14:58:11.767482431 -0400
|
|
+++ chromium-58.0.3029.96/ui/events/devices/x11/device_data_manager_x11.cc 2017-05-08 14:58:37.722960109 -0400
|
|
@@ -790,15 +790,6 @@ void DeviceDataManagerX11::UpdateScrollC
|
|
DCHECK(deviceid >= 0 && deviceid < kMaxDeviceNum);
|
|
ScrollInfo& info = scroll_data_[deviceid];
|
|
|
|
- bool legacy_scroll_available =
|
|
- (scroll_class_info->flags & XIScrollFlagNoEmulation) == 0;
|
|
- // If the device's highest resolution is lower than the resolution of xinput1
|
|
- // then use xinput1's events instead (ie. don't configure smooth scrolling).
|
|
- if (legacy_scroll_available &&
|
|
- std::abs(scroll_class_info->increment) <= 1.0) {
|
|
- return;
|
|
- }
|
|
-
|
|
switch (scroll_class_info->scroll_type) {
|
|
case XIScrollTypeVertical:
|
|
info.vertical.number = scroll_class_info->number;
|