[vte] widget: Fix condition to start scrolling down
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte] widget: Fix condition to start scrolling down
- Date: Tue, 22 Dec 2015 21:47:38 +0000 (UTC)
commit 48719e84812f18f16418498ce9c37f542a056b23
Author: Christian Persch <chpe gnome org>
Date: Tue Dec 22 22:47:13 2015 +0100
widget: Fix condition to start scrolling down
This wasn't updated properly when introducing smooth scroll.
src/vte.cc | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/src/vte.cc b/src/vte.cc
index 58baca1..7383e12 100644
--- a/src/vte.cc
+++ b/src/vte.cc
@@ -7141,9 +7141,7 @@ VteTerminalPrivate::widget_motion_notify(GdkEventMotion *event)
extend_selection(x, y, false, false);
/* Start scrolling if we need to. */
- if (event->y < m_padding.top ||
- event->y >= m_row_count * m_char_height + m_padding.top)
- {
+ if (y < 0 || y >= m_view_usable_extents.height()) {
/* Give mouse wigglers something. */
stop_autoscroll();
autoscroll();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]