diff options
Diffstat (limited to 'src/layout')
| -rw-r--r-- | src/layout/monitor.rs | 4 | ||||
| -rw-r--r-- | src/layout/scrolling.rs | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/layout/monitor.rs b/src/layout/monitor.rs index b0879606..c088f5bc 100644 --- a/src/layout/monitor.rs +++ b/src/layout/monitor.rs @@ -1035,6 +1035,10 @@ impl<W: LayoutElement> Monitor<W> { return true; } + // Take into account any idle time between the last event and now. + let now = self.clock.now_unadjusted(); + gesture.tracker.push(0., now); + let total_height = if gesture.is_touchpad { WORKSPACE_GESTURE_MOVEMENT } else { diff --git a/src/layout/scrolling.rs b/src/layout/scrolling.rs index 29cf9585..657c4162 100644 --- a/src/layout/scrolling.rs +++ b/src/layout/scrolling.rs @@ -3004,6 +3004,10 @@ impl<W: LayoutElement> ScrollingSpace<W> { // it in all the right places (adding columns, removing columns, etc.) -- quite a bit of // effort and bug potential. + // Take into account any idle time between the last event and now. + let now = self.clock.now_unadjusted(); + gesture.tracker.push(0., now); + let norm_factor = if gesture.is_touchpad { self.working_area.size.w / VIEW_GESTURE_WORKING_AREA_MOVEMENT } else { |
